@@ -1168,14 +1168,14 @@ ur_queue_handle_t_::ur_queue_handle_t_(
1168
1168
ZeCommandListBatchComputeConfig.startSize ();
1169
1169
CopyCommandBatch.QueueBatchSize = ZeCommandListBatchCopyConfig.startSize ();
1170
1170
1171
- static const bool useDriverCounterBasedEvents = [] {
1171
+ static const bool useDriverCounterBasedEvents = [Device ] {
1172
1172
const char *UrRet = std::getenv (" UR_L0_USE_DRIVER_COUNTER_BASED_EVENTS" );
1173
- if (!UrRet)
1173
+ if (!UrRet && Device-> isPVC () )
1174
1174
return true ;
1175
1175
return std::atoi (UrRet) != 0 ;
1176
1176
}();
1177
1177
this ->CounterBasedEventsEnabled =
1178
- isInOrderQueue () && Device->useDriverInOrderLists () &&
1178
+ UsingImmCmdLists && isInOrderQueue () && Device->useDriverInOrderLists () &&
1179
1179
useDriverCounterBasedEvents &&
1180
1180
Device->Platform ->ZeDriverEventPoolCountingEventsExtensionFound ;
1181
1181
}
@@ -1872,9 +1872,6 @@ ur_result_t ur_queue_handle_t_::executeOpenCommandList(bool IsCopy) {
1872
1872
ur_result_t ur_queue_handle_t_::resetCommandList (
1873
1873
ur_command_list_ptr_t CommandList, bool MakeAvailable,
1874
1874
std::vector<ur_event_handle_t > &EventListToCleanup, bool CheckStatus) {
1875
- bool CounterBasedEventsResetable = CounterBasedEventsEnabled &&
1876
- Device->useDriverInOrderLists () &&
1877
- isInOrderQueue () && !UsingImmCmdLists;
1878
1875
bool UseCopyEngine = CommandList->second .isCopy (this );
1879
1876
1880
1877
// Immediate commandlists do not have an associated fence.
@@ -1883,8 +1880,7 @@ ur_result_t ur_queue_handle_t_::resetCommandList(
1883
1880
// Reset the fence and put the command list into a cache for reuse in PI
1884
1881
// calls.
1885
1882
ZE2UR_CALL (zeFenceReset, (CommandList->second .ZeFence ));
1886
- if (!CounterBasedEventsResetable)
1887
- ZE2UR_CALL (zeCommandListReset, (CommandList->first ));
1883
+ ZE2UR_CALL (zeCommandListReset, (CommandList->first ));
1888
1884
CommandList->second .ZeFenceInUse = false ;
1889
1885
CommandList->second .IsClosed = false ;
1890
1886
}
0 commit comments