SWDEV-470612 - Avoid copying a vector on the stack

Change-Id: Ia5fc7d1f77d2519dedeedb2c82c26efebb03d1d3


[ROCm/clr commit: c6b8d69158]
このコミットが含まれているのは:
German Andryeyev
2024-07-24 19:10:07 -04:00
コミット fffd8d8190
+2 -2
ファイルの表示
@@ -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<Node>& 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);
}