Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Sets the callback function for obtaining the device memory address based on the allocated block when the user-provided allocator is used.
1 | aclError aclrtAllocatorSetGetAddrFromBlockFuncToDesc(aclrtAllocatorDesc allocatorDesc, aclrtAllocatorGetAddrFromBlockFunc func) |
1 | ret = acl.rt.allocator_set_get_addr_from_block_func_to_desc(allocatorDesc, func) |
Parameter |
Description |
|---|---|
allocatorDesc |
Int, pointer address of the allocator descriptor. Call acl.rt.allocator_create_desc to set the allocator description in advance. |
func |
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |