Skip to content

Commit

Permalink
[SYCL][NFC] Remove unnecessary object copy in MEvents analysis (#15999)
Browse files Browse the repository at this point in the history
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
  • Loading branch information
KseniyaTikhomirova authored Nov 15, 2024
1 parent 1581225 commit 249a89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/source/detail/scheduler/graph_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ Command *Scheduler::GraphBuilder::addCG(
}

// Register all the events as dependencies
for (detail::EventImplPtr e : Events) {
for (const detail::EventImplPtr &e : Events) {
if (Command *ConnCmd = NewCmd->addDep(e, ToCleanUp))
ToEnqueue.push_back(ConnCmd);
}
Expand Down

0 comments on commit 249a89f

Please sign in to comment.