Skip to content

Commit 3e07707

Browse files
[L0] Rebased against top of main
Signed-off-by: Winston Zhang <winston.zhang@intel.com>
1 parent 54e4ff9 commit 3e07707

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/adapters/level_zero/context.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ void ur_context_handle_t_::addEventToContextCache(ur_event_handle_t Event) {
591591

592592
if (Event->CounterBasedEventsEnabled) {
593593
auto Cache = getCounterBasedEventCache(
594-
!Event->UrQueue || Event->UrQueue->UsingImmCmdLists, Device);
594+
!Legacy(Event->UrQueue) || Legacy(Event->UrQueue)->UsingImmCmdLists,
595+
Device);
595596
Cache->emplace_back(Event);
596597
} else {
597598
auto Cache = getEventCache(Event->isHostVisible(),

0 commit comments

Comments
 (0)