aclrtFreePhysical
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Frees the physical memory allocated by the aclrtMallocPhysical call.
Prototype
aclError aclrtFreePhysical(aclrtDrvMemHandle handle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
handle |
Input |
Handle for storing information about the physical memory to be freed. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
- This API is not supported in the Ascend RC form of the
Atlas 200I/500 A2 inference products .
- If the physical memory is mapped to virtual memory, you need to unmap them by calling aclrtUnmapMem before freeing the physical memory.
Parent topic: Memory Management