SWDEV-507960 - Return with error code if stream of type hipStreamLegacy is being attempted to destroy

Change-Id: Iee7ada6a5a905b44360a7e4049fc8b1a45c80db0


[ROCm/clr commit: 9d8d35ae40]
This commit is contained in:
Sourabh Betigeri
2025-01-09 16:33:16 -08:00
committed by Sourabh Betigeri
parent 161d590405
commit c95bb38b2b
+1 -1
View File
@@ -394,7 +394,7 @@ hipError_t hipStreamDestroy(hipStream_t stream) {
if (stream == nullptr) { if (stream == nullptr) {
HIP_RETURN(hipErrorInvalidHandle); HIP_RETURN(hipErrorInvalidHandle);
} }
if (stream == hipStreamPerThread) { if (stream == hipStreamPerThread || stream == hipStreamLegacy) {
HIP_RETURN(hipErrorInvalidResourceHandle); HIP_RETURN(hipErrorInvalidResourceHandle);
} }
if (!hip::isValid(stream)) { if (!hip::isValid(stream)) {