GetSoName

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <graph/kernel_launch_info.h>
  • Library file: libregister.so

Function Usage

Obtains the .so file name of an AI CPU task.

Prototype

1
const char *GetSoName() const

Parameters

None

Returns

Operator's .so file name on success.

nullptr on failure.

Restrictions

The .so file name can only be obtained for AI CPU tasks.

Examples

1
2
3
4
5
6
7
8
9
graphStatus Mc2GenTaskCallback(const gert::ExeResGenerationContext *context,
    std::vector<std::vector<uint8_t>> &tasks) {
  ...
  auto aicpu_task = KernelLaunchInfo::CreateAicpuKfcTask(context,
      "libccl_kernel.so", "RunAicpuKfcSrvLaunch");
  // Obtain libcc_kernel.so.
  auto so_name = aicpu_task.GetSoName();
  ...
}