Revert "SWDEV-316819 - adding graph checks"

This reverts commit eff4583118.

Reason for revert: Catch2 test fails

Change-Id: If0ea0eab16b50f27c9acbc471530266917773ff1


[ROCm/clr commit: d888c0a9bf]
Этот коммит содержится в:
Payam Ghafari
2022-03-23 04:42:32 -04:00
родитель ff6fb01aa1
Коммит 37fa31aaa8
2 изменённых файлов: 1 добавлений и 4 удалений
+1 -3
Просмотреть файл
@@ -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
Просмотреть файл
@@ -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; }
};