aclrtHostUnregister

Applicable Products

Product

Supported

Ascend 950PR

√

Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

☓

Atlas inference products

☓

Atlas training products

√

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.