Function: stream_wait_event
|
C Prototype |
aclError aclrtStreamWaitEvent(aclrtStream stream, aclrtEvent event) |
|---|---|
|
Python Function |
ret = acl.rt.stream_wait_event(stream, event) |
|
Function Usage |
Blocks the running of a specified stream or multiple streams until the specified event is complete. This API is asynchronous. All subsequent tasks submitted to the stream can be executed only after all tasks captured by the event are complete. For more details, see acl.rt.record_event. |
|
Input Description |
stream: int, pointer address of the stream to wait. Pass 0 if the default stream is used. event: int, pointer address of the event to be waited for. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
|
|
Reference |
For the API call example, see Event Synchronization and Inter-Stream Synchronization. |