@@ -88,8 +88,7 @@ ur_result_t urEnqueueEventsWait(
88
88
// Get a new command list to be used on this call
89
89
ur_command_list_ptr_t CommandList{};
90
90
UR_CALL (Queue->Context ->getAvailableCommandList (
91
- Queue, CommandList, UseCopyEngine, NumEventsInWaitList, EventWaitList,
92
- false /* AllowBatching*/ , nullptr /* ForceCmdQueue*/ ));
91
+ Queue, CommandList, UseCopyEngine, NumEventsInWaitList, EventWaitList));
93
92
94
93
ze_event_handle_t ZeEvent = nullptr ;
95
94
ur_event_handle_t InternalEvent;
@@ -110,8 +109,7 @@ ur_result_t urEnqueueEventsWait(
110
109
111
110
// Execute command list asynchronously as the event will be used
112
111
// to track down its completion.
113
- return Queue->executeCommandList (CommandList, false /* IsBlocking*/ ,
114
- false /* OKToBatchCommand*/ );
112
+ return Queue->executeCommandList (CommandList);
115
113
}
116
114
117
115
{
@@ -281,14 +279,13 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
281
279
ur_command_list_ptr_t CmdList;
282
280
UR_CALL (Queue->Context ->getAvailableCommandList (
283
281
Queue, CmdList, false /* UseCopyEngine=*/ , NumEventsInWaitList,
284
- EventWaitList, OkToBatch, nullptr /* ForcedCmdQueue */ ));
282
+ EventWaitList, OkToBatch));
285
283
286
284
// Insert the barrier into the command-list and execute.
287
285
UR_CALL (insertBarrierIntoCmdList (CmdList, TmpWaitList, ResultEvent,
288
286
IsInternal));
289
287
290
- UR_CALL (
291
- Queue->executeCommandList (CmdList, false /* IsBlocking*/ , OkToBatch));
288
+ UR_CALL (Queue->executeCommandList (CmdList, false , OkToBatch));
292
289
293
290
// Because of the dependency between commands in the in-order queue we don't
294
291
// need to keep track of any active barriers if we have in-order queue.
@@ -357,7 +354,7 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
357
354
ur_command_list_ptr_t CmdList;
358
355
UR_CALL (Queue->Context ->getAvailableCommandList (
359
356
Queue, CmdList, false /* UseCopyEngine=*/ , NumEventsInWaitList,
360
- EventWaitList, OkToBatch, nullptr /* ForcedCmdQueue */ ));
357
+ EventWaitList, OkToBatch));
361
358
CmdLists.push_back (CmdList);
362
359
}
363
360
@@ -407,8 +404,7 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
407
404
// Only batch if the matching CmdList is already open.
408
405
OkToBatch = CommandBatch.OpenCommandList == CmdList;
409
406
410
- UR_CALL (
411
- Queue->executeCommandList (CmdList, false /* IsBlocking*/ , OkToBatch));
407
+ UR_CALL (Queue->executeCommandList (CmdList, false , OkToBatch));
412
408
}
413
409
414
410
UR_CALL (Queue->ActiveBarriers .clear ());
@@ -720,7 +716,7 @@ ur_result_t urEnqueueTimestampRecordingExp(
720
716
ur_command_list_ptr_t CommandList{};
721
717
UR_CALL (Queue->Context ->getAvailableCommandList (
722
718
Queue, CommandList, UseCopyEngine, NumEventsInWaitList, EventWaitList,
723
- /* AllowBatching */ false , nullptr /* ForcedCmdQueue */ ));
719
+ /* AllowBatching */ false ));
724
720
725
721
UR_CALL (createEventAndAssociateQueue (
726
722
Queue, OutEvent, UR_COMMAND_TIMESTAMP_RECORDING_EXP, CommandList,
@@ -744,7 +740,7 @@ ur_result_t urEnqueueTimestampRecordingExp(
744
740
(*OutEvent)->WaitList .ZeEventList ));
745
741
746
742
UR_CALL (
747
- Queue->executeCommandList (CommandList, Blocking, false /* OkToBatch */ ));
743
+ Queue->executeCommandList (CommandList, Blocking, /* OkToBatch */ false ));
748
744
749
745
return UR_RESULT_SUCCESS;
750
746
}
@@ -820,9 +816,7 @@ urEventWait(uint32_t NumEvents, ///< [in] number of events in the event list
820
816
else {
821
817
// NOTE: we are cleaning up after the event here to free resources
822
818
// sooner in case run-time is not calling urEventRelease soon enough.
823
- CleanupCompletedEvent (reinterpret_cast <ur_event_handle_t >(Event),
824
- false /* QueueLocked*/ ,
825
- false /* SetEventCompleted*/ );
819
+ CleanupCompletedEvent (reinterpret_cast <ur_event_handle_t >(Event));
826
820
// For the case when we have out-of-order queue or regular command
827
821
// lists its more efficient to check fences so put the queue in the
828
822
// set to cleanup later.
@@ -890,10 +884,7 @@ ur_result_t urExtEventCreate(
890
884
ur_event_handle_t
891
885
*Event // /< [out] pointer to the handle of the event object created.
892
886
) {
893
- UR_CALL (EventCreate (Context, nullptr /* Queue*/ , false /* IsMultiDevice*/ ,
894
- true /* HostVisible*/ , Event,
895
- false /* CounterBasedEventEnabled*/ ,
896
- false /* ForceDisableProfiling*/ ));
887
+ UR_CALL (EventCreate (Context, nullptr , false , true , Event));
897
888
898
889
(*Event)->RefCountExternal ++;
899
890
if (!(*Event)->CounterBasedEventsEnabled )
@@ -912,10 +903,7 @@ ur_result_t urEventCreateWithNativeHandle(
912
903
// we dont have urEventCreate, so use this check for now to know that
913
904
// the call comes from urEventCreate()
914
905
if (reinterpret_cast <ze_event_handle_t >(NativeEvent) == nullptr ) {
915
- UR_CALL (EventCreate (Context, nullptr /* Queue*/ , false /* IsMultiDevice*/ ,
916
- true /* HostVisible*/ , Event,
917
- false /* CounterBasedEventEnabled*/ ,
918
- false /* ForceDisableProfiling*/ ));
906
+ UR_CALL (EventCreate (Context, nullptr , false , true , Event));
919
907
920
908
(*Event)->RefCountExternal ++;
921
909
if (!(*Event)->CounterBasedEventsEnabled )
@@ -995,8 +983,7 @@ ur_result_t ur_event_handle_t_::getOrCreateHostVisibleEvent(
995
983
996
984
ur_command_list_ptr_t CommandList{};
997
985
UR_CALL (UrQueue->Context ->getAvailableCommandList (
998
- UrQueue, CommandList, false /* UseCopyEngine */ , 0 , nullptr , OkToBatch,
999
- nullptr /* ForcedCmdQueue*/ ))
986
+ UrQueue, CommandList, false /* UseCopyEngine */ , 0 , nullptr , OkToBatch))
1000
987
1001
988
// Create a "proxy" host-visible event.
1002
989
UR_CALL (createEventAndAssociateQueue (
@@ -1542,8 +1529,7 @@ ur_result_t _ur_ze_event_list_t::createAndRetainUrZeEventList(
1542
1529
// This prevents a potential deadlock with recursive
1543
1530
// event locks.
1544
1531
UR_CALL (Queue->Context ->getAvailableCommandList (
1545
- Queue, CommandList, false /* UseCopyEngine*/ , 0 , nullptr ,
1546
- true /* AllowBatching*/ , nullptr /* ForcedCmdQueue*/ ));
1532
+ Queue, CommandList, false , 0 , nullptr , true ));
1547
1533
}
1548
1534
1549
1535
std::shared_lock<ur_shared_mutex> Lock (EventList[I]->Mutex );
0 commit comments