File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -576,8 +576,7 @@ ur_event_handle_t ur_context_handle_t_::getEventFromContextCache(
576576 }
577577 Cache->erase (It);
578578 // We have to reset event before using it.
579- if (!CounterBasedEventEnabled)
580- Event->reset ();
579+ Event->reset ();
581580 return Event;
582581}
583582
Original file line number Diff line number Diff line change @@ -1054,8 +1054,7 @@ ur_result_t urEventReleaseInternal(ur_event_handle_t Event) {
10541054 // When we add an event to the cache we need to check whether profiling is
10551055 // enabled or not, so we access properties of the queue and that's why queue
10561056 // must released later.
1057- if ((Event->RefCountExternal > 0 && !Event->CounterBasedEventsEnabled ) &&
1058- (DisableEventsCaching || !Event->OwnNativeHandle )) {
1057+ if (DisableEventsCaching || !Event->OwnNativeHandle ) {
10591058 delete Event;
10601059 } else {
10611060 Event->Context ->addEventToContextCache (Event);
You can’t perform that action at this time.
0 commit comments