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.
2 parents 3a0f984 + 103f5fb commit 4284ad7Copy full SHA for 4284ad7
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