Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.
1 | aclError aclrtFreePhysical(aclrtDrvMemHandle handle) |
1 | ret = acl.rt.free_physical(handle) |
Parameter |
Description |
|---|---|
handle |
Int, handle of the physical address to be freed. |
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |