Skip to content

Commit

Permalink
Merge pull request #2097 from nrspruit/fix_cb_event_signalling
Browse files Browse the repository at this point in the history
[L0] Fix Counter Based Event Default signal given placeholder
  • Loading branch information
pbalcer committed Sep 17, 2024
2 parents bf62bc0 + bd5ed37 commit fb6df49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/adapters/level_zero/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,8 +1546,13 @@ ur_result_t _ur_ze_event_list_t::createAndRetainUrZeEventList(

ZE2UR_CALL(zeCommandListAppendWaitOnEvents,
(ZeCommandList, 1u, &EventList[I]->ZeEvent));
if (!MultiDeviceEvent->CounterBasedEventsEnabled)
if (!MultiDeviceEvent->CounterBasedEventsEnabled) {
ZE2UR_CALL(zeEventHostSignal, (MultiDeviceZeEvent));
} else {
ZE2UR_CALL(zeCommandListAppendSignalEvent,
(ZeCommandList, MultiDeviceZeEvent));
}
MultiDeviceEvent->Completed = true;

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

0 comments on commit fb6df49

Please sign in to comment.