@@ -920,20 +920,20 @@ static void combineAccessModesOfReqs(std::vector<Requirement *> &Reqs) {
920920}
921921
922922Command *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