@@ -88,8 +88,7 @@ ur_result_t urEnqueueEventsWait(
8888 // Get a new command list to be used on this call
8989 ur_command_list_ptr_t CommandList{};
9090 UR_CALL (Queue->Context ->getAvailableCommandList (
91- Queue, CommandList, UseCopyEngine, NumEventsInWaitList, EventWaitList,
92- false /* AllowBatching*/ , nullptr /* ForceCmdQueue*/ ));
91+ Queue, CommandList, UseCopyEngine, NumEventsInWaitList, EventWaitList));
9392
9493 ze_event_handle_t ZeEvent = nullptr ;
9594 ur_event_handle_t InternalEvent;
@@ -110,8 +109,7 @@ ur_result_t urEnqueueEventsWait(
110109
111110 // Execute command list asynchronously as the event will be used
112111 // to track down its completion.
113- return Queue->executeCommandList (CommandList, false /* IsBlocking*/ ,
114- false /* OKToBatchCommand*/ );
112+ return Queue->executeCommandList (CommandList);
115113 }
116114
117115 {
@@ -281,14 +279,13 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
281279 ur_command_list_ptr_t CmdList;
282280 UR_CALL (Queue->Context ->getAvailableCommandList (
283281 Queue, CmdList, false /* UseCopyEngine=*/ , NumEventsInWaitList,
284- EventWaitList, OkToBatch, nullptr /* ForcedCmdQueue */ ));
282+ EventWaitList, OkToBatch));
285283
286284 // Insert the barrier into the command-list and execute.
287285 UR_CALL (insertBarrierIntoCmdList (CmdList, TmpWaitList, ResultEvent,
288286 IsInternal));
289287
290- UR_CALL (
291- Queue->executeCommandList (CmdList, false /* IsBlocking*/ , OkToBatch));
288+ UR_CALL (Queue->executeCommandList (CmdList, false , OkToBatch));
292289
293290 // Because of the dependency between commands in the in-order queue we don't
294291 // need to keep track of any active barriers if we have in-order queue.
@@ -357,7 +354,7 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
357354 ur_command_list_ptr_t CmdList;
358355 UR_CALL (Queue->Context ->getAvailableCommandList (
359356 Queue, CmdList, false /* UseCopyEngine=*/ , NumEventsInWaitList,
360- EventWaitList, OkToBatch, nullptr /* ForcedCmdQueue */ ));
357+ EventWaitList, OkToBatch));
361358 CmdLists.push_back (CmdList);
362359 }
363360
@@ -407,8 +404,7 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
407404 // Only batch if the matching CmdList is already open.
408405 OkToBatch = CommandBatch.OpenCommandList == CmdList;
409406
410- UR_CALL (
411- Queue->executeCommandList (CmdList, false /* IsBlocking*/ , OkToBatch));
407+ UR_CALL (Queue->executeCommandList (CmdList, false , OkToBatch));
412408 }
413409
414410 UR_CALL (Queue->ActiveBarriers .clear ());
@@ -720,7 +716,7 @@ ur_result_t urEnqueueTimestampRecordingExp(
720716 ur_command_list_ptr_t CommandList{};
721717 UR_CALL (Queue->Context ->getAvailableCommandList (
722718 Queue, CommandList, UseCopyEngine, NumEventsInWaitList, EventWaitList,
723- /* AllowBatching */ false , nullptr /* ForcedCmdQueue */ ));
719+ /* AllowBatching */ false ));
724720
725721 UR_CALL (createEventAndAssociateQueue (
726722 Queue, OutEvent, UR_COMMAND_TIMESTAMP_RECORDING_EXP, CommandList,
@@ -744,7 +740,7 @@ ur_result_t urEnqueueTimestampRecordingExp(
744740 (*OutEvent)->WaitList .ZeEventList ));
745741
746742 UR_CALL (
747- Queue->executeCommandList (CommandList, Blocking, false /* OkToBatch */ ));
743+ Queue->executeCommandList (CommandList, Blocking, /* OkToBatch */ false ));
748744
749745 return UR_RESULT_SUCCESS;
750746}
@@ -820,9 +816,7 @@ urEventWait(uint32_t NumEvents, ///< [in] number of events in the event list
820816 else {
821817 // NOTE: we are cleaning up after the event here to free resources
822818 // 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));
826820 // For the case when we have out-of-order queue or regular command
827821 // lists its more efficient to check fences so put the queue in the
828822 // set to cleanup later.
@@ -890,10 +884,7 @@ ur_result_t urExtEventCreate(
890884 ur_event_handle_t
891885 *Event // /< [out] pointer to the handle of the event object created.
892886) {
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));
897888
898889 (*Event)->RefCountExternal ++;
899890 if (!(*Event)->CounterBasedEventsEnabled )
@@ -912,10 +903,7 @@ ur_result_t urEventCreateWithNativeHandle(
912903 // we dont have urEventCreate, so use this check for now to know that
913904 // the call comes from urEventCreate()
914905 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));
919907
920908 (*Event)->RefCountExternal ++;
921909 if (!(*Event)->CounterBasedEventsEnabled )
@@ -995,8 +983,7 @@ ur_result_t ur_event_handle_t_::getOrCreateHostVisibleEvent(
995983
996984 ur_command_list_ptr_t CommandList{};
997985 UR_CALL (UrQueue->Context ->getAvailableCommandList (
998- UrQueue, CommandList, false /* UseCopyEngine */ , 0 , nullptr , OkToBatch,
999- nullptr /* ForcedCmdQueue*/ ))
986+ UrQueue, CommandList, false /* UseCopyEngine */ , 0 , nullptr , OkToBatch))
1000987
1001988 // Create a "proxy" host-visible event.
1002989 UR_CALL (createEventAndAssociateQueue (
@@ -1542,8 +1529,7 @@ ur_result_t _ur_ze_event_list_t::createAndRetainUrZeEventList(
15421529 // This prevents a potential deadlock with recursive
15431530 // event locks.
15441531 UR_CALL (Queue->Context ->getAvailableCommandList (
1545- Queue, CommandList, false /* UseCopyEngine*/ , 0 , nullptr ,
1546- true /* AllowBatching*/ , nullptr /* ForcedCmdQueue*/ ));
1532+ Queue, CommandList, false , 0 , nullptr , true ));
15471533 }
15481534
15491535 std::shared_lock<ur_shared_mutex> Lock (EventList[I]->Mutex );
0 commit comments