From 99613f100931f88a621442499baf92cc89a8f43f Mon Sep 17 00:00:00 2001 From: Jaydeep <106300970+jaydeeppatel1111@users.noreply.github.com> Date: Fri, 19 Sep 2025 14:31:17 +0530 Subject: [PATCH] SWDEV-555484 - Invalidate capturing stream only for null/legacy stream. (#1032) --- projects/clr/hipamd/src/hip_internal.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_internal.hpp b/projects/clr/hipamd/src/hip_internal.hpp index 3fe1c7ca36..af385d7bf6 100644 --- a/projects/clr/hipamd/src/hip_internal.hpp +++ b/projects/clr/hipamd/src/hip_internal.hpp @@ -256,7 +256,7 @@ const char* ihipGetErrorName(hipError_t hip_error); reinterpret_cast(stream)->GetCaptureStatus() == \ hipStreamCaptureStatusInvalidated) { \ return hipErrorStreamCaptureInvalidated; \ - } else { \ + } else if (stream == nullptr || stream == hipStreamLegacy) { \ CHECK_STREAM_CAPTURING() \ }