Skip to content

Commit bd5ed37

Browse files
committed
[L0] Fix Counter Based Event Default signal given placeholder
- When a counter based event is created and is expected to be already signalled, then those events either need to be labelled as Completed==true or they need to be signalled on the device vs the host. - Now, all places where host signal was skipped, those events are marked "Completed" such that those events will be skipped in the waitlist and in the case of the multi device, the event will be signalled on the device as part of the execute with the previous waitlist. Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
1 parent 06c4cd0 commit bd5ed37

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/adapters/level_zero/event.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,8 +1546,13 @@ ur_result_t _ur_ze_event_list_t::createAndRetainUrZeEventList(
15461546

15471547
ZE2UR_CALL(zeCommandListAppendWaitOnEvents,
15481548
(ZeCommandList, 1u, &EventList[I]->ZeEvent));
1549-
if (!MultiDeviceEvent->CounterBasedEventsEnabled)
1549+
if (!MultiDeviceEvent->CounterBasedEventsEnabled) {
15501550
ZE2UR_CALL(zeEventHostSignal, (MultiDeviceZeEvent));
1551+
} else {
1552+
ZE2UR_CALL(zeCommandListAppendSignalEvent,
1553+
(ZeCommandList, MultiDeviceZeEvent));
1554+
}
1555+
MultiDeviceEvent->Completed = true;
15511556

15521557
UR_CALL(Queue->executeCommandList(CommandList, /* IsBlocking */ false,
15531558
/* OkToBatchCommand */ true));

0 commit comments

Comments
 (0)