SWDEV-425640 - An instantiated graphExec should retain a copy of every reference in the source graph
Change-Id: Idf6b224449ca642af2860b33dc739f51a6248e4c
[ROCm/clr commit: 3fdd46ae59]
This commit is contained in:
کامیت شده توسط
Sourabh Betigeri
والد
9caac12074
کامیت
423fd58c3f
@@ -285,6 +285,10 @@ Graph* Graph::clone(std::unordered_map<Node, Node>& clonedNodes) const {
|
||||
}
|
||||
clonedNodes[node]->SetDependencies(clonedDependencies);
|
||||
}
|
||||
for (auto userObj : graphUserObj_) {
|
||||
userObj->retain();
|
||||
newGraph->graphUserObj_.insert(userObj);
|
||||
}
|
||||
return newGraph;
|
||||
}
|
||||
|
||||
|
||||
@@ -463,12 +463,6 @@ struct Graph {
|
||||
void GetRunList(std::vector<std::vector<Node>>& parallelLists,
|
||||
std::unordered_map<Node, std::vector<Node>>& dependencies);
|
||||
bool TopologicalOrder(std::vector<Node>& TopoOrder);
|
||||
void GetUserObjs(std::unordered_set<UserObject*>& graphExeUserObjs) {
|
||||
for (auto userObj : graphUserObj_) {
|
||||
userObj->retain();
|
||||
graphExeUserObjs.insert(userObj);
|
||||
}
|
||||
}
|
||||
|
||||
Graph* clone(std::unordered_map<Node, Node>& clonedNodes) const;
|
||||
Graph* clone() const;
|
||||
|
||||
مرجع در شماره جدید
Block a user