51
51
52
52
┌─────────────────────────────────────────────┐──────────────┐
53
53
Suffix │Barrier waiting on sync-point event, │ Query CMD │
54
- │signalling the UR command-buffer signal event│ Timestamps │
54
+ │signaling the UR command-buffer signal event │ Timestamps │
55
55
└─────────────────────────────────────────────┘──────────────┘
56
56
57
57
For a call to `urCommandBufferEnqueueExp` with an event_list `EL`,
@@ -559,7 +559,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp(
559
559
560
560
LaunchEvent->CommandData = (void *)Kernel;
561
561
// Increment the reference count of the Kernel and indicate that the Kernel
562
- // is in use. Once the event has been signalled , the code in
562
+ // is in use. Once the event has been signaled , the code in
563
563
// CleanupCompletedEvent(Event) will do a urKernelRelease to update the
564
564
// reference count on the kernel, using the kernel saved in CommandData.
565
565
UR_CALL (urKernelRetain (Kernel));
@@ -875,7 +875,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(
875
875
// Create a list of events of all the events that compose the command buffer
876
876
// workload.
877
877
// This loop also resets the L0 events we use for command-buffer internal
878
- // sync-points to the non-signalled state.
878
+ // sync-points to the non-signaled state.
879
879
// This is required for multiple submissions.
880
880
const size_t NumEvents = CommandBuffer->SyncPoints .size ();
881
881
std::vector<ze_event_handle_t > WaitEventList{NumEvents};
@@ -904,14 +904,14 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(
904
904
(WaitCommandList->first , CommandBuffer->WaitEvent ->ZeEvent ,
905
905
CommandBuffer->WaitEvent ->WaitList .Length ,
906
906
CommandBuffer->WaitEvent ->WaitList .ZeEventList ));
907
- Queue->executeCommandList (WaitCommandList, false , false );
908
907
MustSignalWaitEvent = false ;
909
908
}
910
909
}
911
-
912
910
if (MustSignalWaitEvent) {
913
- ZE2UR_CALL (zeEventHostSignal, (CommandBuffer->WaitEvent ->ZeEvent ));
911
+ ZE2UR_CALL (zeCommandListAppendSignalEvent,
912
+ (WaitCommandList->first , CommandBuffer->WaitEvent ->ZeEvent ));
914
913
}
914
+ Queue->executeCommandList (WaitCommandList, false , false );
915
915
916
916
// Submit main command-list. This command-list is of a batch command-list
917
917
// type, regardless of the UR Queue type. We therefore need to submit the list
@@ -927,7 +927,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(
927
927
ur_command_list_ptr_t SignalCommandList{};
928
928
UR_CALL (Queue->Context ->getAvailableCommandList (Queue, SignalCommandList,
929
929
false , false ));
930
- // Reset the wait-event for the UR command-buffer that is signalled when its
930
+ // Reset the wait-event for the UR command-buffer that is signaled when its
931
931
// submission dependencies have been satisfied.
932
932
ZE2UR_CALL (zeCommandListAppendEventReset,
933
933
(SignalCommandList->first , CommandBuffer->WaitEvent ->ZeEvent ));
0 commit comments