Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Frees the virtual memory allocated by the acl.rt.reserve_mem_address call.
1 | aclError aclrtReleaseMemAddress(void *virPtr) |
1 | ret = acl.rt.release_mem_address(vir_ptr) |
Parameter |
Description |
|---|---|
virPtr |
Int, pointing to the address of the virtual address space to be freed. |
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
This API is not supported in the Ascend RC form.
If the virtual memory is mapped to physical memory, you need to unmap them by calling acl.rt.unmap_mem before freeing the virtual memory.