aclrtHostUnregister
Applicable Products
Product |
Supported |
|---|---|
√ |
|
☓ |
|
√ |
|
√ |
|
☓ |
|
☓ |
|
√ |
Function
Unregisters host memory.
This API is used in pair with aclrtHostRegister.
This is an encapsulated API that applies only to C++ programs. It internally calls the C API aclrtHostUnregister.
Prototype
1 2 | template <typename T> aclError aclrtHostUnregister(T *ptr) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ptr |
Input |
Memory address on the host. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: C++ Extension APIs