Skip to content
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
Expand Up @@ -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,
Expand Down
Loading