Revert "SWDEV-316819 - adding graph checks"

This reverts commit 5dd91d698b.

Reason for revert: Catch2 test fails

Change-Id: If0ea0eab16b50f27c9acbc471530266917773ff1
This commit is contained in:
Payam Ghafari
2022-03-23 04:42:32 -04:00
parent ed487980cd
commit d888c0a9bf
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -1215,9 +1215,7 @@ hipError_t hipGraphChildGraphNodeGetGraph(hipGraphNode_t node, hipGraph_t* pGrap
HIP_RETURN(hipErrorInvalidValue);
}
*pGraph = reinterpret_cast<hipChildGraphNode*>(node)->GetChildGraph();
//if the node count is larger than 0, the current node is a parent
if (*pGraph == nullptr || reinterpret_cast<ihipGraph*>(pGraph)->GetNodeCount() > 0) {
if (pGraph == nullptr) {
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(hipSuccess);
-1
View File
@@ -224,7 +224,6 @@ struct hipGraphNode {
}
}
ihipGraph* GetParentGraph() { return parentGraph_; }
virtual ihipGraph* GetChildGraph() { return nullptr; }
void SetParentGraph(ihipGraph* graph) { parentGraph_ = graph; }
virtual hipError_t SetParams(hipGraphNode* node) { return hipSuccess; }
};