aclrtGetFunctionAddr
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Obtains the start address of an operator on a device based on the kernel function handle.
The AI data processing core unit varies depending on products. For details about the definition and description of the core, see aclrtDevAttr.
- For the following product models, the start address of an operator on AI Core is returned through the aicAddr parameter:
Atlas training products Atlas inference products - For the following product models, the start address of an operator on Cube Core is returned through the aicAddr parameter:
Ascend 950PR /Ascend 950DT Atlas A3 training products /Atlas A3 inference products Atlas A2 training products /Atlas A2 inference products Atlas 200I/500 A2 inference products
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 AI Core or Cube Core. |
aivAddr |
Output |
Start address of an operator on Vector Core. If the value of aivAddr obtained by calling this API is empty, the operator is not executed on Vector Core. |
Returns
0 on success; otherwise, failure. For details, see aclError.