SWDEV-292547 - To match cuda behavior
Change-Id: I3577609fcc5443949f73644196e8310fc49d887f
[ROCm/clr commit: 930807fd20]
This commit is contained in:
committed by
Sarbojit Sarkar
parent
48316f63e9
commit
96e7dcecd1
@@ -402,7 +402,9 @@ hipError_t hipStreamDestroy(hipStream_t stream) {
|
|||||||
if (stream == nullptr) {
|
if (stream == nullptr) {
|
||||||
HIP_RETURN(hipErrorInvalidHandle);
|
HIP_RETURN(hipErrorInvalidHandle);
|
||||||
}
|
}
|
||||||
|
if (stream == hipStreamPerThread) {
|
||||||
|
HIP_RETURN(hipErrorInvalidResourceHandle);
|
||||||
|
}
|
||||||
if (!hip::isValid(stream)) {
|
if (!hip::isValid(stream)) {
|
||||||
HIP_RETURN(hipErrorContextIsDestroyed);
|
HIP_RETURN(hipErrorContextIsDestroyed);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user