aclrtCreateBinary
Description
Creates data of the aclrtBinary type. This data type is used to describe the binary information of an operator. Only Ascend C custom operators are supported.
To destroy data of the aclrtBinary type, call aclrtDestroyBinary.
Prototype
aclrtBinary aclrtCreateBinary(const void *data, size_t dataLen)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
data |
Input |
Pointer to the memory address for storing the binary file (*.o file) data of the operator. Allocate memory on the host or device based on where the application runs. For details about the memory allocation APIs, see Memory Management. |
dataLen |
Input |
Memory size, in bytes |
Returns
Pointer to data of the aclrtBinary type.
Parent topic: Kernel Loading and Execution