Skip to content

Commit 71b1b6f

Browse files
committed
[L0] Fix append of Signal Events to occur for all batch types
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent c1aa839 commit 71b1b6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/adapters/level_zero/queue.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,13 +1395,6 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
13951395
zeCommandListAppendBarrier,
13961396
(CommandList->first, HostVisibleEvent->ZeEvent, 0, nullptr));
13971397
}
1398-
// Append Signalling of the inner events at the end of the batch
1399-
for (auto &Event : CommandList->second.EventList) {
1400-
if (Event->IsInnerBatchedEvent) {
1401-
ZE2UR_CALL(zeCommandListAppendSignalEvent,
1402-
(CommandList->first, Event->ZeEvent));
1403-
}
1404-
}
14051398
} else {
14061399
// If we don't have host visible proxy then signal event if needed.
14071400
this->signalEventFromCmdListIfLastEventDiscarded(CommandList);
@@ -1410,6 +1403,13 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
14101403
// If we don't have host visible proxy then signal event if needed.
14111404
this->signalEventFromCmdListIfLastEventDiscarded(CommandList);
14121405
}
1406+
// Append Signalling of the inner events at the end of the batch
1407+
for (auto &Event : CommandList->second.EventList) {
1408+
if (Event->IsInnerBatchedEvent) {
1409+
ZE2UR_CALL(zeCommandListAppendSignalEvent,
1410+
(CommandList->first, Event->ZeEvent));
1411+
}
1412+
}
14131413

14141414
// Close the command list and have it ready for dispatch.
14151415
ZE2UR_CALL(zeCommandListClose, (CommandList->first));

0 commit comments

Comments
 (0)