From 8aa91e7a76a5723606a817385ea3a343ec5ca3aa Mon Sep 17 00:00:00 2001 From: Vlad Romanov Date: Wed, 26 Feb 2020 15:10:24 +0300 Subject: [PATCH] [SYCL] Do not remove commands from leaves lists on sub-buffer creation It's not correct to remove commands from leaves that we are not depending on. Signed-off-by: Vlad Romanov --- sycl/source/detail/scheduler/graph_builder.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/sycl/source/detail/scheduler/graph_builder.cpp b/sycl/source/detail/scheduler/graph_builder.cpp index 7d40ea089f57..d112de043a99 100644 --- a/sycl/source/detail/scheduler/graph_builder.cpp +++ b/sycl/source/detail/scheduler/graph_builder.cpp @@ -505,8 +505,6 @@ AllocaCommandBase *Scheduler::GraphBuilder::getOrCreateAllocaForReq( auto *ParentAlloca = getOrCreateAllocaForReq(Record, &ParentRequirement, Queue); AllocaCmd = new AllocaSubBufCommand(Queue, *Req, ParentAlloca); - updateLeaves(findDepsForReq(Record, Req, Queue->getContextImplPtr()), - Record, access::mode::read_write); } else { const Requirement FullReq(/*Offset*/ {0, 0, 0}, Req->MMemoryRange,