Skip to content

Commit

Permalink
Merge pull request #2358 from pbalcer/remove-event-counter-reset
Browse files Browse the repository at this point in the history
[L0 v2] don't reset counter-based events
  • Loading branch information
pbalcer authored Nov 21, 2024
2 parents 20e501a + ee75fd7 commit d9640c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/adapters/level_zero/v2/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ void ur_event_handle_t_::resetQueueAndCommand(ur_queue_handle_t hQueue,
}

void ur_event_handle_t_::reset() {
// consider make an abstraction for regular/counter based
// consider making an abstraction for regular/counter based
// events if there's more of this type of conditions
if (pool->getFlags() & v2::EVENT_FLAGS_COUNTER) {
if (!(pool->getFlags() & v2::EVENT_FLAGS_COUNTER)) {
zeEventHostReset(zeEvent.get());
}
}
Expand Down

0 comments on commit d9640c0

Please sign in to comment.