Skip to content

Commit c0345df

Browse files
committed
A fix for no last event mode
1 parent 40c39d6 commit c0345df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sycl/source/detail/queue_impl.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,14 @@ queue_impl::submit_direct(bool CallerNeedsEvent,
662662
: true) &&
663663
!hasCommandGraph();
664664

665+
if (isInOrder()) {
666+
if (SchedulerBypass) {
667+
MNoLastEventMode.store(true, std::memory_order_relaxed);
668+
} else {
669+
MNoLastEventMode.store(false, std::memory_order_relaxed);
670+
}
671+
}
672+
665673
EventImplPtr EventImpl = SubmitCommandFunc(CGData, SchedulerBypass);
666674

667675
// Sync with the last event for in order queue. For scheduler-bypass flow,

0 commit comments

Comments
 (0)