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; \