Device-wide synchronization in SYCL on NVIDIA GPUs #8337
Replies: 1 comment 3 replies
-
@YuriPlyakhin do you have thoughts on this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I'm porting a complex CUDA application to SYCL which uses multiple
cudaStream
to launch the kernels. In addition, it also uses the default Stream in some cases, forcing a device-wide synchronization.Problem
Cuda Streams can be mapped quite easily to in order SYCL Queues, however when encountering a device-wide synchronization point (i.e.
cudaDeviceSyncronize()
), I must explicitly wait on all the queues asqueue::wait()
waits just on the commands submitted to that queue.Question
Is there a way to wait on all the commands for a specific device without having to call wait() on every queue explicitly?
Beta Was this translation helpful? Give feedback.
All reactions