aclrtCmoWaitBarrier
Applicability
Product |
Supported |
|---|---|
☓ |
|
☓ |
|
√ |
|
☓ |
|
☓ |
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.