From f1d8a0212236a6f5893aba96874e6c6bec369b5f Mon Sep 17 00:00:00 2001 From: pghafari Date: Mon, 19 Sep 2022 08:59:54 -0400 Subject: [PATCH] SWDEV-356582 - set the parent node in Graph Clone Change-Id: I9b685ca9827b0a0dddc3ef6a0394b298d1031f04 --- hipamd/src/hip_graph_internal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/src/hip_graph_internal.cpp b/hipamd/src/hip_graph_internal.cpp index 02e1dcae71..e3df8a1000 100644 --- a/hipamd/src/hip_graph_internal.cpp +++ b/hipamd/src/hip_graph_internal.cpp @@ -645,6 +645,7 @@ ihipGraph* ihipGraph::clone(std::unordered_map& clonedNodes) const{ ihipGraph* newGraph = new ihipGraph(); for (auto entry : vertices_) { hipGraphNode* node = entry->clone(); + node->SetParentGraph(newGraph); newGraph->vertices_.push_back(node); clonedNodes[entry] = node; }