aclrtFreePhysical

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

√

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

√

Function

Frees the physical memory allocated by the aclrtMallocPhysical call.

If the physical memory is mapped to virtual memory, the physical memory will not be actually freed. The physical memory is actually freed only after the mapping between the physical memory and the virtual memory is canceled by calling aclrtUnmapMem.

Prototype

1
aclError aclrtFreePhysical(aclrtDrvMemHandle handle)

Parameters

Parameter

Input/Output

Description

handle

Input

Handle for storing information about the physical memory to be freed. For details about the type definition, see aclrtDrvMemHandle.

Returns

0 on success; otherwise, failure. For details, see aclError.

Restrictions

Atlas 200I/500 A2 inference products in Ascend RC form: This API is not supported.

API Call Example

For the API call example, see Virtual Memory Management.