Principles
Synchronization Mechanisms
The following synchronization mechanisms are supported:
- acl.rt.synchronize_event block application execution, waits for an event to complete.
- acl.rt.synchronize_stream block application execution, waits until all tasks in the given stream are completed.
- acl.rt.stream_wait_event blocks the execution of a specified stream until the specified event is completed. It allows multiple streams to wait for the same event to complete. For the API call sequence, see Synchronous Wait of Tasks Between Streams (Implemented Using Events).
- acl.rt.synchronize_device block application execution, waits until the device has completed all requested tasks. Waits for the device of the current context in the multi-device scenario.
Parent topic: Synchronous Wait