Skip to content

Commit

Permalink
Set CUcontext not via Device in cuda adapter.
Browse files Browse the repository at this point in the history
Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
  • Loading branch information
JackAKirk committed Mar 1, 2024
1 parent 29ac4c7 commit 2077bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/cuda/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ urEventWait(uint32_t numEvents, const ur_event_handle_t *phEventWaitList) {
try {
auto WaitFunc = [](ur_event_handle_t Event) -> ur_result_t {
UR_ASSERT(Event, UR_RESULT_ERROR_INVALID_EVENT);
ScopedContext Active(Event->getQueue()->getDevice());
ScopedContext Active(Event->getContext());

return Event->wait();
};
Expand Down

0 comments on commit 2077bc6

Please sign in to comment.