Function: synchronize_stream
Description
Blocks the app running until all tasks in the specified stream are complete.
Prototype
- C Prototype
1aclError aclrtSynchronizeStream(aclrtStream stream)
- Python Function
1ret = acl.rt.synchronize_stream(stream)
Parameters
|
Parameter |
Description |
|---|---|
|
stream |
Int, pointer address of the stream object that needs to complete all tasks. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
Parent topic: Streams Management