Function: host_unregister
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
Function Usage
Unregisters the host memory. This API is used in pair with acl.rt.host_register.
Prototype
- C Prototype
1aclError aclrtHostUnregister(void *ptr)
- Python Function
1ret = acl.rt.host_unregister(ptr)
Parameter Description
Parameter |
Description |
|---|---|
ptr |
Int, host memory address. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: Memory Management