@@ -959,14 +959,14 @@ ur_queue_handle_t_::ur_queue_handle_t_(
959
959
ZeCommandListBatchComputeConfig.startSize ();
960
960
CopyCommandBatch.QueueBatchSize = ZeCommandListBatchCopyConfig.startSize ();
961
961
962
- static const bool useDriverCounterBasedEvents = [] {
962
+ static const bool useDriverCounterBasedEvents = [Device ] {
963
963
const char *UrRet = std::getenv (" UR_L0_USE_DRIVER_COUNTER_BASED_EVENTS" );
964
- if (!UrRet)
964
+ if (!UrRet && Device-> isPVC () )
965
965
return true ;
966
966
return std::atoi (UrRet) != 0 ;
967
967
}();
968
968
this ->CounterBasedEventsEnabled =
969
- isInOrderQueue () && Device->useDriverInOrderLists () &&
969
+ UsingImmCmdLists && isInOrderQueue () && Device->useDriverInOrderLists () &&
970
970
useDriverCounterBasedEvents &&
971
971
Device->Platform ->ZeDriverEventPoolCountingEventsExtensionFound ;
972
972
}
@@ -1644,9 +1644,6 @@ ur_result_t ur_queue_handle_t_::executeOpenCommandList(bool IsCopy) {
1644
1644
ur_result_t ur_queue_handle_t_::resetCommandList (
1645
1645
ur_command_list_ptr_t CommandList, bool MakeAvailable,
1646
1646
std::vector<ur_event_handle_t > &EventListToCleanup, bool CheckStatus) {
1647
- bool CounterBasedEventsResetable = CounterBasedEventsEnabled &&
1648
- Device->useDriverInOrderLists () &&
1649
- isInOrderQueue () && !UsingImmCmdLists;
1650
1647
bool UseCopyEngine = CommandList->second .isCopy (this );
1651
1648
1652
1649
// Immediate commandlists do not have an associated fence.
@@ -1655,8 +1652,7 @@ ur_result_t ur_queue_handle_t_::resetCommandList(
1655
1652
// Reset the fence and put the command list into a cache for reuse in PI
1656
1653
// calls.
1657
1654
ZE2UR_CALL (zeFenceReset, (CommandList->second .ZeFence ));
1658
- if (!CounterBasedEventsResetable)
1659
- ZE2UR_CALL (zeCommandListReset, (CommandList->first ));
1655
+ ZE2UR_CALL (zeCommandListReset, (CommandList->first ));
1660
1656
CommandList->second .ZeFenceInUse = false ;
1661
1657
CommandList->second .IsClosed = false ;
1662
1658
}
0 commit comments