SWDEV-361623 - correct remove edge behaviour

- remove node dependency before checking parents
- reduce edge level acording to new value of node

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Id4bff1684f7e0b42beeebc4d2e009bfdb507fb5f
This commit is contained in:
sdashmiz
2022-10-14 18:11:08 -04:00
committato da Shadi Dashmiz
parent 118e7144f8
commit 34d087da93
2 ha cambiato i file con 17 aggiunte e 3 eliminazioni
+1 -1
Vedi File
@@ -1711,7 +1711,7 @@ hipError_t hipGraphRemoveDependencies(hipGraph_t graph, const hipGraphNode_t* fr
}
for (size_t i = 0; i < numDependencies; i++) {
if (to[i]->GetParentGraph() != graph || from[i]->GetParentGraph() != graph ||
from[i]->RemoveEdge(to[i]) == false) {
from[i]->RemoveUpdateEdge(to[i]) == false) {
HIP_RETURN(hipErrorInvalidValue);
}
}