Skip to content

Commit e0d527a

Browse files
Fix the case where the WorkerQueue is a host queue
1 parent aeb8291 commit e0d527a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ void Command::processDepEvent(EventImplPtr DepEvent, const DepDesc &Dep) {
499499
// TODO temporarily disabled with Level Zero since the enqueued operations
500500
// that are implemented directly in the plugin (e.g. map/unmap) do not satisfy
501501
// in-order queue requirements.
502-
if (WorkerQueue->getPlugin().getBackend() != backend::level_zero)
502+
if (WorkerQueue->is_host() ||
503+
WorkerQueue->getPlugin().getBackend() != backend::level_zero)
503504
if (Dep.MDepCommand && Dep.MDepCommand->getWorkerQueue() == WorkerQueue &&
504505
WorkerQueue->has_property<property::queue::in_order>())
505506
return;

0 commit comments

Comments
 (0)