SWDEV-465142 - Copy memAllocNodePtrs_ when cloning graph
Change-Id: I5a0907e59397e71b44db59c44b551b74a6e59ba0
This commit is contained in:
@@ -1295,6 +1295,7 @@ hipError_t ihipGraphInstantiate(hip::GraphExec** pGraphExec, hip::Graph* graph,
|
||||
}
|
||||
std::unordered_map<hip::GraphNode*, hip::GraphNode*> clonedNodes;
|
||||
hip::Graph* clonedGraph = graph->clone(clonedNodes);
|
||||
clonedGraph->memAllocNodePtrs_ = graph->memAllocNodePtrs_;
|
||||
if (clonedGraph == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user