aclrtSynchronizeStream waits until all preceding tasks in the given stream have completed.
aclrtStreamWaitEvent makes all the tasks added to the given streams after the call delay their execution until the given event has completed. It allows multiple streams to wait for the same event to complete. For the API call sequence, see API Call Sequence (Multi-stream Scenario).
aclrtSynchronizeDevice waits until the device has completed all preceding requested tasks. In the multi-device scenario, this API is called to wait for the device corresponding to the current context. For details about the API call sequence, see Multi-device Switchover.