Skip to content

Commit 29e73e0

Browse files
fix mem migration check
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 17bf93a commit 29e73e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sycl/source/detail/scheduler/graph_builder.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -920,20 +920,20 @@ static void combineAccessModesOfReqs(std::vector<Requirement *> &Reqs) {
920920
}
921921

922922
Command *Scheduler::GraphBuilder::addCG(
923-
std::unique_ptr<detail::CG> CommandGroup, const QueueImplPtr &Queue,
924-
std::vector<Command *> &ToEnqueue, bool EventNeeded,
925-
ur_exp_command_buffer_handle_t CommandBuffer,
923+
std::unique_ptr<detail::CG> CommandGroup,
924+
const QueueImplPtr &SubmittedQueue, std::vector<Command *> &ToEnqueue,
925+
bool EventNeeded, ur_exp_command_buffer_handle_t CommandBuffer,
926926
const std::vector<ur_exp_command_buffer_sync_point_t> &Dependencies) {
927927
std::vector<Requirement *> &Reqs = CommandGroup->getRequirements();
928928
std::vector<detail::EventImplPtr> &Events = CommandGroup->getEvents();
929929

930-
auto NewCmd = std::make_unique<ExecCGCommand>(std::move(CommandGroup), Queue,
931-
EventNeeded, CommandBuffer,
932-
std::move(Dependencies));
933-
930+
auto NewCmd = std::make_unique<ExecCGCommand>(
931+
std::move(CommandGroup), SubmittedQueue, EventNeeded, CommandBuffer,
932+
std::move(Dependencies));
934933
if (!NewCmd)
935934
throw exception(make_error_code(errc::memory_allocation),
936935
"Out of host memory");
936+
auto Queue = NewCmd->getWorkerQueue();
937937

938938
bool isInteropTask = isInteropHostTask(NewCmd.get());
939939

0 commit comments

Comments
 (0)