From c95bb38b2b98bce1be2cb3711aee1c01dec08d4b Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Thu, 9 Jan 2025 16:33:16 -0800 Subject: [PATCH] SWDEV-507960 - Return with error code if stream of type hipStreamLegacy is being attempted to destroy Change-Id: Iee7ada6a5a905b44360a7e4049fc8b1a45c80db0 [ROCm/clr commit: 9d8d35ae4041ef0f37430b1265e0ad60698d5b51] --- projects/clr/hipamd/src/hip_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_stream.cpp b/projects/clr/hipamd/src/hip_stream.cpp index c297798a5d..a1a474baea 100644 --- a/projects/clr/hipamd/src/hip_stream.cpp +++ b/projects/clr/hipamd/src/hip_stream.cpp @@ -394,7 +394,7 @@ hipError_t hipStreamDestroy(hipStream_t stream) { if (stream == nullptr) { HIP_RETURN(hipErrorInvalidHandle); } - if (stream == hipStreamPerThread) { + if (stream == hipStreamPerThread || stream == hipStreamLegacy) { HIP_RETURN(hipErrorInvalidResourceHandle); } if (!hip::isValid(stream)) {