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() \ }