aclrtCmoWaitBarrier

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

Waits for the invalid memory operation task with the specified barrierId to complete. This is an asynchronous API.

Prototype

1
aclError aclrtCmoWaitBarrier(aclrtBarrierTaskInfo *taskInfo, aclrtStream stream, uint32_t flag)

Parameters

Parameter

Input/Output

Description

taskInfo

Input

Information about the cache memory operation task. For details about the type definition, see aclrtBarrierTaskInfo.

Currently, cmoType in the task information can only be ACL_RT_CMO_TYPE_INVALID.

stream

Input

Stream for executing the waiting task. For details about the type definition, see aclrtStream.

Only a stream bound to a model is supported. To bind a stream to a model, call the aclmdlRIBindStream API.

flag

Input

Reserved. The value is fixed at 0.

Returns

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