Skip to content
Merged
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: 3 additions & 1 deletion source/adapters/level_zero/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ ur_queue_handle_legacy_t_::enqueueEventsWaitWithBarrier( ///< [in] handle of the

// For in-order queue and wait-list which is empty or has events from
// the same queue just use the last command event as the barrier event.
if (Queue->isInOrderQueue() &&
// This optimization is disabled when profiling is enabled to ensure
// accurate profiling values & the overhead that profiling incurs.
if (Queue->isInOrderQueue() && !Queue->isProfilingEnabled() &&
WaitListEmptyOrAllEventsFromSameQueue(Queue, NumEventsInWaitList,
EventWaitList) &&
Queue->LastCommandEvent && !Queue->LastCommandEvent->IsDiscarded) {
Expand Down