From 0647cf1d28bdeeda8ff440c47e27d7cd400b3e97 Mon Sep 17 00:00:00 2001 From: "systems-assistant[bot]" <221163467+systems-assistant[bot]@users.noreply.github.com> Date: Thu, 11 Sep 2025 16:57:22 +0530 Subject: [PATCH] SWDEV-542700 - Return an error if stream capture is attempted on the null stream while a stream capture is active. (#450) Co-authored-by: Anusha GodavarthySurya Co-authored-by: systems-assistant[bot] Co-authored-by: Godavarthy Surya, Anusha --- projects/clr/hipamd/src/hip_internal.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/clr/hipamd/src/hip_internal.hpp b/projects/clr/hipamd/src/hip_internal.hpp index 3519543a0a..3fe1c7ca36 100644 --- a/projects/clr/hipamd/src/hip_internal.hpp +++ b/projects/clr/hipamd/src/hip_internal.hpp @@ -256,6 +256,8 @@ const char* ihipGetErrorName(hipError_t hip_error); reinterpret_cast(stream)->GetCaptureStatus() == \ hipStreamCaptureStatusInvalidated) { \ return hipErrorStreamCaptureInvalidated; \ + } else { \ + CHECK_STREAM_CAPTURING() \ } #define PER_THREAD_DEFAULT_STREAM(stream) \