aclrtBinaryGetFunction
Description
Searches for the kernel object based on kernelName and uses funcHandle to express the kernel object. Only Ascend C custom operators are supported.
Prototype
aclError aclrtBinaryGetFunction(const aclrtBinHandle binHandle, const char *kernelName, aclrtFuncHandle *funcHandle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
binHandle |
Input |
Handle pointing to the operator binary. Call aclrtBinaryLoad API to obtain binHandle. |
kernelName |
Input |
Kernel name. |
funcHandle |
Output |
funcHandle expression of the specified kernel. typedef void* aclrtFuncHandle; |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Kernel Loading and Execution