We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c4c15 commit 35729a7Copy full SHA for 35729a7
sycl/plugins/cuda/pi_cuda.cpp
@@ -473,7 +473,10 @@ pi_result enqueueEventWait(pi_queue queue, pi_event event) {
473
// for native events, the cuStreamWaitEvent call is used.
474
// This makes all future work submitted to stream wait for all
475
// work captured in event.
476
- return PI_CHECK_ERROR(cuStreamWaitEvent(queue->get(), event->get(), 0));
+ if (queue->get() != event->get_queue()->get()) {
477
+ return PI_CHECK_ERROR(cuStreamWaitEvent(queue->get(), event->get(), 0));
478
+ }
479
+ return PI_SUCCESS;
480
}
481
482
_pi_program::_pi_program(pi_context ctxt)
0 commit comments