Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sycl/plugins/cuda/pi_cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ pi_result enqueueEventWait(pi_queue queue, pi_event event) {
// for native events, the cuStreamWaitEvent call is used.
// This makes all future work submitted to stream wait for all
// work captured in event.
return PI_CHECK_ERROR(cuStreamWaitEvent(queue->get(), event->get(), 0));
if (queue->get() != event->get_queue()->get()) {
return PI_CHECK_ERROR(cuStreamWaitEvent(queue->get(), event->get(), 0));
}
return PI_SUCCESS;
}

_pi_program::_pi_program(pi_context ctxt)
Expand Down