SWDEV-337331 - Windows graph fixes iteration2

API fixed hipGraphAddDependencies

Change-Id: I1248c00d788c392c71e64c5070fe09653125bb34


[ROCm/clr commit: 9e7b44511a]
This commit is contained in:
agunashe
2022-06-06 13:21:44 -07:00
committed by Ajay GunaShekar
parent 9be23b6b1f
commit af679a5f1c
+1
View File
@@ -1214,6 +1214,7 @@ hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t* from,
for (size_t i = 0; i < numDependencies; i++) {
// When the same node is specified for both from and to
if (from[i] == nullptr || to[i] == nullptr || from[i] == to[i] ||
!hipGraphNode::isNodeValid(to[i]) || !hipGraphNode::isNodeValid(from[i]) ||
// making sure the nodes blong to the graph
to[i]->GetParentGraph() != graph || from[i]->GetParentGraph() != graph) {
HIP_RETURN(hipErrorInvalidValue);