Function: synchronize_stream

C Prototype

aclError aclrtSynchronizeStream(aclrtStream stream)

Python Function

ret = acl.rt.synchronize_stream(stream)

Function Usage

Blocks the app running until all tasks in the specified stream are complete.

Input Description

stream: int, pointer address of the stream object that needs to complete all tasks.

Return Value

ret: int, error code.

Restrictions

None

Reference

For details about the API call example, see Inter-Stream Synchronization.