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 798c1ca commit 36fa311Copy full SHA for 36fa311
sycl/source/detail/queue_impl.cpp
@@ -659,10 +659,11 @@ queue_impl::submit_direct(bool CallerNeedsEvent,
659
}
660
661
bool SchedulerBypass =
662
- CGData.MEvents.size() > 0
663
- ? detail::Scheduler::areEventsSafeForSchedulerBypass(CGData.MEvents,
664
- getContextImpl())
665
- : true;
+ (CGData.MEvents.size() > 0
+ ? detail::Scheduler::areEventsSafeForSchedulerBypass(
+ CGData.MEvents, getContextImpl())
+ : true) &&
666
+ !hasCommandGraph();
667
668
EventImplPtr EventImpl = SubmitCommandFunc(CGData, SchedulerBypass);
669
0 commit comments