Function: unmap_mem
C Prototype |
aclError aclrtUnmapMem(void *virPtr) |
|---|---|
Python Function |
ret = acl.rt.unmap_mem(vir_ptr) |
Function Usage |
Unmaps virtual memory from physical memory. This API needs to work with other APIs to allocate virtual memory with consecutive addresses and maximize the use of physical memory.
|
Input Description |
vir_ptr: int, virtual address to be unmapped. |
Return Value |
ret: int, error code.
|
Restrictions |
This API is not supported in Ascend RC form. |
Parent topic: Memory Management