Function: host_unregister
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Not supported
- Atlas inference products: Not supported
- Atlas training products: Not supported
Function
Unregisters host memory. This API must be used in pair with acl.rt.host_register.
Prototype
-
C Prototype
aclError aclrtHostUnregister(void *ptr) -
Python Function
ret = acl.rt.host_unregister(ptr)
Parameters
| Parameter | Description |
|---|---|
| ptr | Int, host memory address. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |