Function: free_physical
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Frees the physical memory allocated by the acl.rt.malloc_physical call.
If the physical memory is mapped to the virtual memory, the physical memory will not be freed here. The physical memory is actually freed only after the mapping between the physical memory and the virtual memory is canceled by calling acl.rt.unmap_mem.
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 Values
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |