Skip to content

Commit

Permalink
swap condition tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrancepillois committed Feb 8, 2024
1 parent d8d8db5 commit 19166bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/source/detail/queue_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ event queue_impl::submitMemOpHelper(const std::shared_ptr<queue_impl> &Self,

// If we have a command graph set we need to capture the op through the
// handler rather than by-passing the scheduler.
if (areEventsSafeForSchedulerBypass(ExpandedDepEvents, MContext) &&
!MGraph.lock()) {
if (!MGraph.lock() &&
areEventsSafeForSchedulerBypass(ExpandedDepEvents, MContext)) {
if (MHasDiscardEventsSupport) {
MemOpFunc(MemOpArgs..., getPIEvents(ExpandedDepEvents),
/*PiEvent*/ nullptr, /*EventImplPtr*/ nullptr);
Expand Down

0 comments on commit 19166bb

Please sign in to comment.