Skip to content

Commit

Permalink
Merge pull request #1437 from hdelan/event-wait-with-good-context
Browse files Browse the repository at this point in the history
[HIP] Use context to get active device
  • Loading branch information
kbenzie committed Apr 15, 2024
2 parents 15233fd + 35a6899 commit 55cf3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/hip/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ urEventWait(uint32_t numEvents, const ur_event_handle_t *phEventWaitList) {
UR_ASSERT(numEvents > 0, UR_RESULT_ERROR_INVALID_VALUE);

try {
ScopedContext Active(phEventWaitList[0]->getDevice());
ScopedContext Active(phEventWaitList[0]->getContext()->getDevices()[0]);
auto WaitFunc = [](ur_event_handle_t Event) -> ur_result_t {
UR_ASSERT(Event, UR_RESULT_ERROR_INVALID_EVENT);

Expand Down

0 comments on commit 55cf3ba

Please sign in to comment.