SWDEV-470612 - Avoid copying a vector on the stack
Change-Id: Ia5fc7d1f77d2519dedeedb2c82c26efebb03d1d3
[ROCm/clr commit: c6b8d69158]
Este commit está contenido en:
1 padre
9d1d3a6493
commit
fffd8d8190
1 file changed
+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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user