From af679a5f1c1b9b06326ac81c1041a129bda75db6 Mon Sep 17 00:00:00 2001 From: agunashe Date: Mon, 6 Jun 2022 13:21:44 -0700 Subject: [PATCH] SWDEV-337331 - Windows graph fixes iteration2 API fixed hipGraphAddDependencies Change-Id: I1248c00d788c392c71e64c5070fe09653125bb34 [ROCm/clr commit: 9e7b44511a686762d5ba0ba17b0c939c25c77661] --- projects/clr/hipamd/src/hip_graph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index 4a0537cd94..555112349f 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -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);