Skip to content

Commit 39fcb2b

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

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
@@ -1170,8 +1170,11 @@ ur_queue_handle_t_::ur_queue_handle_t_(
11701170

11711171
static const bool useDriverCounterBasedEvents = [Device] {
11721172
const char *UrRet = std::getenv("UR_L0_USE_DRIVER_COUNTER_BASED_EVENTS");
1173-
if (!UrRet && Device->isPVC())
1174-
return true;
1173+
if (!UrRet) {
1174+
if (Device->isPVC())
1175+
return true;
1176+
return false;
1177+
}
11751178
return std::atoi(UrRet) != 0;
11761179
}();
11771180
this->CounterBasedEventsEnabled =

0 commit comments

Comments
 (0)