Skip to content

Commit fb6df49

Browse files
authored
Merge pull request #2097 from nrspruit/fix_cb_event_signalling
[L0] Fix Counter Based Event Default signal given placeholder
2 parents bf62bc0 + bd5ed37 commit fb6df49

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)