Function: allocator_set_obj_to_desc
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Sets the Allocator object in the Allocator description when the user-provided Allocator is used.
Prototype
- C Prototype
1aclError aclrtAllocatorSetObjToDesc(aclrtAllocatorDesc allocatorDesc, aclrtAllocator allocator)
- Python Function
1ret = acl.rt.allocator_set_obj_to_desc(allocatorDesc, allocator)
Parameters
Parameter |
Description |
|---|---|
allocatorDesc |
Int, pointer address of the allocator descriptor. Call acl.rt.allocator_create_desc to set the Allocator description in advance. |
allocator |
Int, pointer address of the allocator object provided by the user. |
Return Value
Returned Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |
Parent topic: aclrtAllocatorDesc