Skip to content

Commit cfde409

Browse files
[L0] default option pvc with counterbased events
Signed-off-by: Zhang, Winston <[email protected]>
1 parent f71a0cb commit cfde409

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/adapters/level_zero/queue.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,11 @@ ur_queue_handle_t_::ur_queue_handle_t_(
961961

962962
static const bool useDriverCounterBasedEvents = [Device] {
963963
const char *UrRet = std::getenv("UR_L0_USE_DRIVER_COUNTER_BASED_EVENTS");
964-
if (!UrRet && Device->isPVC())
965-
return true;
964+
if (!UrRet) {
965+
if (Device->isPVC())
966+
return true;
967+
return false;
968+
}
966969
return std::atoi(UrRet) != 0;
967970
}();
968971
this->CounterBasedEventsEnabled =

0 commit comments

Comments
 (0)