Skip to content

Commit

Permalink
[L0] Rebased against top of main
Browse files Browse the repository at this point in the history
Signed-off-by: Winston Zhang <[email protected]>
  • Loading branch information
winstonzhang-intel committed Jul 2, 2024
1 parent 9a7d300 commit caeceb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/adapters/level_zero/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ void ur_context_handle_t_::addEventToContextCache(ur_event_handle_t Event) {

if (Event->CounterBasedEventsEnabled) {
auto Cache = getCounterBasedEventCache(
!Event->UrQueue || Event->UrQueue->UsingImmCmdLists, Device);
!Legacy(Event->UrQueue) || Legacy(Event->UrQueue)->UsingImmCmdLists,
Device);
Cache->emplace_back(Event);
} else {
auto Cache = getEventCache(Event->isHostVisible(),
Expand Down

0 comments on commit caeceb4

Please sign in to comment.