Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions unified-runtime/source/adapters/offload/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo(ur_event_handle_t hEvent,
case UR_EVENT_INFO_REFERENCE_COUNT:
return ReturnValue(hEvent->RefCount.load());
case UR_EVENT_INFO_COMMAND_EXECUTION_STATUS: {
if (!hEvent->OffloadEvent) {
return ReturnValue(UR_EVENT_STATUS_COMPLETE);
}

bool Complete;
OL_RETURN_ON_ERR(olGetEventInfo(hEvent->OffloadEvent,
OL_EVENT_INFO_IS_COMPLETE, sizeof(Complete),
Expand Down
Loading