Function: free_physical
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Frees the physical memory allocated by the acl.rt.malloc_physical call.
Prototype
- C Prototype
1aclError aclrtFreePhysical(aclrtDrvMemHandle handle)
- Python Function
1ret = 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.
Parent topic: Memory Management