aclrtCntNotifyCreate

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

Creates a CntNotify object.

CntNotify is also used for communication and notifications between devices. However, CntNotify uses the count for synchronization between tasks. The difference between Notify and CntNotify is that the count of Notify supports only 1, while the count of CntNotify is in the range [1 to the maximum value of uint32_t].

Prototype

1
aclError aclrtCntNotifyCreate(aclrtCntNotify *cntNotify, uint64_t flag)

Parameters

Parameter

Input/Output

Description

cntNotify

Output

Pointer to the CntNotify. For details about the type definition, see aclrtCntNotify.

flag

Input

Reserved. The value is fixed at 0.

Returns

0 on success; otherwise, failure. For details, see aclError.