We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89dc3a5 commit 103f5fbCopy full SHA for 103f5fb
source/adapters/level_zero/event.cpp
@@ -228,7 +228,9 @@ ur_queue_handle_legacy_t_::enqueueEventsWaitWithBarrier( ///< [in] handle of the
228
229
// For in-order queue and wait-list which is empty or has events from
230
// the same queue just use the last command event as the barrier event.
231
- if (Queue->isInOrderQueue() &&
+ // This optimization is disabled when profiling is enabled to ensure
232
+ // accurate profiling values & the overhead that profiling incurs.
233
+ if (Queue->isInOrderQueue() && !Queue->isProfilingEnabled() &&
234
WaitListEmptyOrAllEventsFromSameQueue(Queue, NumEventsInWaitList,
235
EventWaitList) &&
236
Queue->LastCommandEvent && !Queue->LastCommandEvent->IsDiscarded) {
0 commit comments