aclrtFreePhysical

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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.