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(
576
576
}
577
577
Cache->erase (It);
578
578
// We have to reset event before using it.
579
- if (!CounterBasedEventEnabled)
580
- Event->reset ();
579
+ Event->reset ();
581
580
return Event;
582
581
}
583
582
Original file line number Diff line number Diff line change @@ -1054,8 +1054,7 @@ ur_result_t urEventReleaseInternal(ur_event_handle_t Event) {
1054
1054
// When we add an event to the cache we need to check whether profiling is
1055
1055
// enabled or not, so we access properties of the queue and that's why queue
1056
1056
// must released later.
1057
- if ((Event->RefCountExternal > 0 && !Event->CounterBasedEventsEnabled ) &&
1058
- (DisableEventsCaching || !Event->OwnNativeHandle )) {
1057
+ if (DisableEventsCaching || !Event->OwnNativeHandle ) {
1059
1058
delete Event;
1060
1059
} else {
1061
1060
Event->Context ->addEventToContextCache (Event);
You can’t perform that action at this time.
0 commit comments