@@ -574,8 +574,9 @@ ur_event_handle_t ur_context_handle_t_::getEventFromContextCache(
574
574
bool HostVisible, bool WithProfiling, ur_device_handle_t Device,
575
575
bool CounterBasedEventEnabled, bool InterruptBasedEventEnabled) {
576
576
std::scoped_lock<ur_mutex> Lock (EventCacheMutex);
577
- auto Cache = getEventCache (HostVisible, WithProfiling, Device,
578
- CounterBasedEventEnabled);
577
+ auto Cache =
578
+ getEventCache (HostVisible, WithProfiling, Device,
579
+ CounterBasedEventEnabled, InterruptBasedEventEnabled);
579
580
if (Cache->empty ()) {
580
581
logger::info (" Cache empty (Host Visible: {}, Profiling: {}, Counter: {}, "
581
582
" Device: {})" ,
@@ -611,9 +612,9 @@ void ur_context_handle_t_::addEventToContextCache(ur_event_handle_t Event) {
611
612
Device = Event->UrQueue ->Device ;
612
613
}
613
614
614
- auto Cache =
615
- getEventCache ( Event->isHostVisible (), Event->isProfilingEnabled (), Device,
616
- Event->CounterBasedEventsEnabled );
615
+ auto Cache = getEventCache (
616
+ Event->isHostVisible (), Event->isProfilingEnabled (), Device,
617
+ Event->CounterBasedEventsEnabled , Event-> InterruptBasedEventsEnabled );
617
618
logger::info (" Inserting {} event (Host Visible: {}, Profiling: {}, Counter: "
618
619
" {}, Device: {}) into cache {}" ,
619
620
Event, Event->HostVisibleEvent , Event->isProfilingEnabled (),
0 commit comments