SWDEV-337331 - Windows graph fixes iteration2
API fixed hipGraphAddDependencies
Change-Id: I1248c00d788c392c71e64c5070fe09653125bb34
[ROCm/clr commit: 9e7b44511a]
This commit is contained in:
committed by
Ajay GunaShekar
parent
9be23b6b1f
commit
af679a5f1c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user