aclrtCmoWaitBarrier

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

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

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 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.