SWDEV-329848 - Fixes error code mismatch between CUDA and HIP

Change-Id: Ic48de159ca7bdb4b91dadb915972e535518635ae
This commit is contained in:
Sourabh Betigeri
2022-03-29 17:17:54 -07:00
committed by Sourabh Betigeri
parent cb4aabd285
commit 345e02358c
+1 -1
View File
@@ -841,7 +841,7 @@ hipError_t hipGraphDestroy(hipGraph_t graph) {
}
// if graph is not valid its destroyed already
if (!ihipGraph::isGraphValid(graph)) {
HIP_RETURN(hipErrorInvalidValue);
HIP_RETURN(hipErrorIllegalState);
}
delete graph;
HIP_RETURN(hipSuccess);