Skip to content

Commit 6a4bb7b

Browse files
committed
restore accidentally deleted code.
Signed-off-by: rbegam <[email protected]>
1 parent 4a2df5c commit 6a4bb7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@ void Command::processDepEvent(EventImplPtr DepEvent, const DepDesc &Dep) {
497497
}
498498

499499
// Do not add redundant event dependencies for in-order queues.
500+
if (Dep.MDepCommand && Dep.MDepCommand->getWorkerQueue() == WorkerQueue &&
501+
WorkerQueue->has_property<property::queue::in_order>())
502+
return;
500503

501504
ContextImplPtr DepEventContext = DepEvent->getContextImpl();
502505
// If contexts don't match we'll connect them using host task

0 commit comments

Comments
 (0)