Skip to content

Commit 039cf14

Browse files
[L0] syntax fixes
Signed-off-by: Zhang, Winston <[email protected]>
1 parent cd42b01 commit 039cf14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/adapters/level_zero/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ ur_event_handle_t ur_context_handle_t_::getEventFromContextCache(
596596
"Interrupt: {}, Device: {}) from cache {}",
597597
Event, Event->HostVisibleEvent, Event->isProfilingEnabled(),
598598
Event->CounterBasedEventsEnabled,
599-
Event->InterruptBasedEventsEnabled, Cache);
599+
Event->InterruptBasedEventsEnabled, Device, Cache);
600600

601601
return Event;
602602
}

source/adapters/level_zero/context.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ struct ur_context_handle_t_ : _ur_object {
375375
EVENT_FLAG_WITH_PROFILING = UR_BIT(1),
376376
EVENT_FLAG_COUNTER = UR_BIT(2),
377377
EVENT_FLAG_INTERRUPT = UR_BIT(3),
378-
EVENT_FLAG_DEVICE = UR_BIT(5), // if set, subsequent bits are device id
378+
EVENT_FLAG_DEVICE = UR_BIT(4), // if set, subsequent bits are device id
379379
MAX_EVENT_FLAG_BITS =
380-
6, // this is used as an offset for embedding device id
380+
5, // this is used as an offset for embedding device id
381381
};
382382

383383
// Mutex to control operations on event caches.

0 commit comments

Comments
 (0)