SWDEV-313213 - hipGraphDestroy issues

Change-Id: Idf3ede5ea29161b9e5753e8beb245b1f9fd86d28


[ROCm/clr commit: 42137222ad]
このコミットが含まれているのは:
Ajay committed 2022-03-10 19:54:01 +00:00
1 親 eba59236b1
コミット f365706d25
1ファイル変更
+4
+4
ファイルの表示
@@ -824,6 +824,10 @@ hipError_t hipGraphDestroy(hipGraph_t graph) {
if (graph == nullptr) {
HIP_RETURN(hipErrorInvalidValue);
}
// if graph is not valid its destroyed already
if (!ihipGraph::isGraphValid(graph)) {
HIP_RETURN(hipErrorInvalidValue);
}
delete graph;
HIP_RETURN(hipSuccess);
}