Skip to content

[UR][L0] Address issue with unnecessary event for barrier #17841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 0 additions & 10 deletions unified-runtime/source/adapters/level_zero/queue.cpp
Original file line number Diff line number Diff line change
@@ -2351,16 +2351,6 @@ ur_queue_handle_t_::insertActiveBarriers(ur_command_list_ptr_t &CmdList,
ActiveBarriers.add(Event);
}

ur_event_handle_t Event = nullptr;
if (auto Res = createEventAndAssociateQueue(
reinterpret_cast<ur_queue_handle_t>(this), &Event,
UR_EXT_COMMAND_TYPE_USER, CmdList,
/* IsInternal */ true, /* IsMultiDevice */ true))
return Res;

Event->WaitList = ActiveBarriersWaitList;
Event->OwnNativeHandle = true;

// If there are more active barriers, insert a barrier on the command-list. We
// do not need an event for finishing so we pass nullptr.
ZE2UR_CALL(zeCommandListAppendBarrier,
Loading