aclrtFreePhysical

The Atlas 200/300/500 Inference Product does not support this API.

Description

Frees the physical memory allocated by the aclrtMallocPhysical call.

Restrictions

  • This API is not supported in Ascend RC form.

    Currently, the following models support the Ascend RC form:

    • Atlas 200/300/500 Inference Product
  • If the physical memory is mapped to virtual memory, you need to unmap them by calling aclrtUnmapMem before freeing the physical memory.

Prototype

aclError aclrtFreePhysical(aclrtDrvMemHandle handle)

Parameters

Parameter

Input/Output

Description

handle

Input

Handle to the physical memory to be released.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.