aclrtCmoWaitBarrier

Applicability

Product

Supported

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

Description

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

Prototype

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

Parameters

Parameter

Input/Output

Description

taskInfo

Input

Information about the cache memory operation task.

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

stream

Input

Stream for executing the waiting task.

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

flag

Input

Reserved. The value is fixed at 0.

Returns

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