We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf62bc0 + bd5ed37 commit fb6df49Copy full SHA for fb6df49
source/adapters/level_zero/event.cpp
@@ -1546,8 +1546,13 @@ ur_result_t _ur_ze_event_list_t::createAndRetainUrZeEventList(
1546
1547
ZE2UR_CALL(zeCommandListAppendWaitOnEvents,
1548
(ZeCommandList, 1u, &EventList[I]->ZeEvent));
1549
- if (!MultiDeviceEvent->CounterBasedEventsEnabled)
+ if (!MultiDeviceEvent->CounterBasedEventsEnabled) {
1550
ZE2UR_CALL(zeEventHostSignal, (MultiDeviceZeEvent));
1551
+ } else {
1552
+ ZE2UR_CALL(zeCommandListAppendSignalEvent,
1553
+ (ZeCommandList, MultiDeviceZeEvent));
1554
+ }
1555
+ MultiDeviceEvent->Completed = true;
1556
1557
UR_CALL(Queue->executeCommandList(CommandList, /* IsBlocking */ false,
1558
/* OkToBatchCommand */ true));
0 commit comments