aclrtGetFunctionAddr

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

Description

Obtains the start address of an operator on a device based on a kernel function handle.

The AI data processing core unit varies with products. For details about the definition and description of the core, see aclrtDevAttr.

Prototype

1
aclError aclrtGetFunctionAddr(aclrtFuncHandle funcHandle, void **aicAddr, void **aivAddr)

Parameters

Parameter

Input/Output

Description

funcHandle

Input

Kernel function handle. For details about the type definition, see aclrtFuncHandle.

aicAddr

Output

Start address of an operator on the AI Core or Cube Core.

  • For the following products, the start address of an operator on the AI Core is returned.

    Atlas training product

    Atlas inference product

  • For the following products, the start address of an operator on the Cube Core is returned.

    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

aivAddr

Output

Start address of an operator on the Vector Core.

If the value of aivAddr obtained by calling this API is empty, the operator is not executed on the Vector Core.

Returns

0 on success; otherwise, failure. For details, see aclError.