aclrtAllocatorSetObjToDesc
Description
Sets the Allocator object in the Allocator description when the user-provided Allocator is used.
Prototype
aclError aclrtAllocatorSetObjToDesc(aclrtAllocatorDesc allocatorDesc, aclrtAllocator allocator)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
allocatorDesc |
Input |
Pointer to the Allocator descriptor. Call aclrtAllocatorCreateDesc to set the Allocator description in advance. |
allocator |
Input |
Pointer to the Allocator object provided by the user. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: aclrtAllocatorDesc