From 7257f56c6071b5c412c5400a6424cf040543b3b0 Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Fri, 31 May 2024 10:09:20 -0400 Subject: [PATCH] SWDEV-429053 - Add more check for hipStreamLegacy Signed-off-by: sdashmiz Change-Id: Iaf802372b160b09e5e8451074af1731e4f1d410a --- hipamd/src/hip_internal.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_internal.hpp b/hipamd/src/hip_internal.hpp index eab70a0f99..a83320c634 100644 --- a/hipamd/src/hip_internal.hpp +++ b/hipamd/src/hip_internal.hpp @@ -235,7 +235,7 @@ const char* ihipGetErrorName(hipError_t hip_error); hipStreamCaptureStatusActive) { \ hipError_t status = hip::capture##name(stream, ##__VA_ARGS__); \ return status; \ - } else if (stream != nullptr && \ + } else if (stream != nullptr && stream != hipStreamLegacy && \ reinterpret_cast(stream)->GetCaptureStatus() == \ hipStreamCaptureStatusInvalidated) { \ return hipErrorStreamCaptureInvalidated; \