Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Sets the allocator object in the allocator description when the user-provided allocator is used.
1 | aclError aclrtAllocatorSetObjToDesc(aclrtAllocatorDesc allocatorDesc, aclrtAllocator allocator) |
1 | ret = acl.rt.allocator_set_obj_to_desc(allocatorDesc, allocator) |
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 |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |