aclrtUnmapMem
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Unmaps virtual memory from physical memory.
This API needs to be used with other APIs to allocate virtual memory with consecutive addresses and maximize the use of physical memory.
- Call aclrtReserveMemAddress to allocate virtual memory.
- Call aclrtMallocPhysical to allocate physical memory.
- Call aclrtMapMem to map the virtual memory to the physical memory.
- Call specific task APIs to execute tasks.
- Call aclrtUnmapMem to unmap the virtual memory from the physical memory.
- Call aclrtFreePhysical to free the physical memory.
- Call aclrtReleaseMemAddress to free the virtual memory.
Prototype
1
|
aclError aclrtUnmapMem(void *virPtr) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
virPtr |
Input |
Pointer to the virtual memory address to be unmapped. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
Parent topic: Memory Management