aclrtGetFunctionAddr

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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

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

Parameters

Parameter

Input/Output

Description

funcHandle

Input

Kernel function handle.

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 products

    Atlas inference products

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

    Atlas A3 training products/Atlas A3 inference products

    Atlas A2 training products/Atlas A2 inference products

    Atlas 200I/500 A2 inference products

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; else, failure. For details, see aclError.