We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bddb8f1 commit 32eb6a5Copy full SHA for 32eb6a5
hipamd/src/hip_graph_internal.cpp
@@ -271,8 +271,10 @@ bool Graph::TopologicalOrder(std::vector<Node>& TopoOrder) {
271
// ================================================================================================
272
void Graph::clone(Graph* newGraph, bool cloneNodes) const {
273
newGraph->pOriginalGraph_ = this;
274
+ auto curDevId = ihipGetDevice();
275
for (hip::GraphNode* entry : vertices_) {
276
GraphNode* node = entry->clone();
277
+ node->SetDeviceId(curDevId);
278
node->SetParentGraph(newGraph);
279
newGraph->vertices_.push_back(node);
280
newGraph->clonedNodes_[entry] = node;
0 commit comments