aclrtGetFunctionAddr
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.
|
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.