Function: synchronize_stream
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
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)
Parameter Description
|
Parameter |
Description |
|---|---|
|
stream |
Int, pointer address of the stream object that needs to complete all tasks. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: Streams Management