SWDEV-292547 - To match cuda behavior

Change-Id: I3577609fcc5443949f73644196e8310fc49d887f


[ROCm/clr commit: 930807fd20]
このコミットが含まれているのは:
Sarbojit Sarkar
2021-10-04 15:44:32 +00:00
committed by Sarbojit Sarkar
コミット 96e7dcecd1
+3 -1
ファイルの表示
@@ -402,7 +402,9 @@ hipError_t hipStreamDestroy(hipStream_t stream) {
if (stream == nullptr) {
HIP_RETURN(hipErrorInvalidHandle);
}
if (stream == hipStreamPerThread) {
HIP_RETURN(hipErrorInvalidResourceHandle);
}
if (!hip::isValid(stream)) {
HIP_RETURN(hipErrorContextIsDestroyed);
}