Function: free_physical

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Frees the physical memory allocated by the acl.rt.malloc_physical call.

Prototype

  • C Prototype
    1
    aclError aclrtFreePhysical(aclrtDrvMemHandle handle)
    
  • Python Function
    1
    ret = acl.rt.free_physical(handle)
    

Parameters

Parameter

Description

handle

Int, handle of the physical address to be freed.

Return Value

Return Value

Description

ret

Int, error code. 0 on success; else, failure.

Restrictions

Ascend RC does not support this API.