SWDEV-329848 - Fixes error code mismatch between CUDA and HIP
Change-Id: Ic48de159ca7bdb4b91dadb915972e535518635ae
This commit is contained in:
committed by
Sourabh Betigeri
parent
cb4aabd285
commit
345e02358c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user