File tree 1 file changed +4
-11
lines changed
unified-runtime/source/adapters/level_zero
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -879,23 +879,16 @@ finalizeWaitEventPath(ur_exp_command_buffer_handle_t CommandBuffer) {
879
879
880
880
// Reset the L0 events we use for command-buffer sync-points to the
881
881
// non-signaled state. This is required for multiple submissions.
882
- auto resetEvents = [&CommandBuffer]() -> ur_result_t {
883
- for (auto &Event : CommandBuffer->ZeEventsList ) {
884
- ZE2UR_CALL (zeCommandListAppendEventReset,
885
- (CommandBuffer->ZeCommandListResetEvents , Event));
886
- }
887
- return UR_RESULT_SUCCESS;
888
- };
882
+ for (auto &Event : CommandBuffer->ZeEventsList ) {
883
+ ZE2UR_CALL (zeCommandListAppendEventReset,
884
+ (CommandBuffer->ZeCommandListResetEvents , Event));
885
+ }
889
886
890
887
if (CommandBuffer->IsInOrderCmdList ) {
891
- if (!CommandBuffer->MCopyCommandListEmpty ) {
892
- resetEvents ();
893
- }
894
888
ZE2UR_CALL (zeCommandListAppendSignalEvent,
895
889
(CommandBuffer->ZeComputeCommandList ,
896
890
CommandBuffer->ExecutionFinishedEvent ->ZeEvent ));
897
891
} else {
898
- resetEvents ();
899
892
// Wait for all the user added commands to complete, and signal the
900
893
// command-buffer signal-event when they are done.
901
894
ZE2UR_CALL (zeCommandListAppendBarrier,
You can’t perform that action at this time.
0 commit comments