From fffd8d8190773da94f1d16136ffb2349a0dfe3c7 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Wed, 24 Jul 2024 19:10:07 -0400 Subject: [PATCH] SWDEV-470612 - Avoid copying a vector on the stack Change-Id: Ia5fc7d1f77d2519dedeedb2c82c26efebb03d1d3 [ROCm/clr commit: c6b8d69158ce3016f79b379ad49b17135593dd6c] --- projects/clr/hipamd/src/hip_graph_internal.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/src/hip_graph_internal.hpp b/projects/clr/hipamd/src/hip_graph_internal.hpp index eee2c45811..c43c136b8a 100644 --- a/projects/clr/hipamd/src/hip_graph_internal.hpp +++ b/projects/clr/hipamd/src/hip_graph_internal.hpp @@ -342,7 +342,7 @@ struct GraphNode : public hipGraphNodeDOTAttribute { /// Get topological sort of the nodes embedded as part of the graphnode(e.g. ChildGraph) virtual bool TopologicalOrder(std::vector& TopoOrder) { return true; } /// Update waitlist of the nodes embedded as part of the graphnode(e.g. ChildGraph) - virtual void UpdateEventWaitLists(amd::Command::EventWaitList waitList) { + virtual void UpdateEventWaitLists(const amd::Command::EventWaitList& waitList) { for (auto command : commands_) { command->updateEventWaitList(waitList); } @@ -798,7 +798,7 @@ struct ChildGraphNode : public GraphNode { } // - void UpdateEventWaitLists(amd::Command::EventWaitList waitList) override { + void UpdateEventWaitLists(const amd::Command::EventWaitList& waitList) override { if (startCommand_ != nullptr) { startCommand_->updateEventWaitList(waitList); }