diff --git a/hipamd/src/hip_graph.cpp b/hipamd/src/hip_graph.cpp index 37c2ea9a3b..7225eb5593 100644 --- a/hipamd/src/hip_graph.cpp +++ b/hipamd/src/hip_graph.cpp @@ -1460,7 +1460,8 @@ hipError_t hipStreamGetCaptureInfo_common(hipStream_t stream, return hipErrorStreamCaptureImplicit; } if (stream == nullptr) { - return hipErrorUnknown; + *pCaptureStatus = hipStreamCaptureStatusNone; + return hipSuccess; } hip::Stream* s = reinterpret_cast(stream); *pCaptureStatus = s->GetCaptureStatus(); @@ -1495,7 +1496,8 @@ hipError_t hipStreamGetCaptureInfo_v2_common(hipStream_t stream, return hipErrorStreamCaptureImplicit; } if (stream == nullptr) { - return hipErrorUnknown; + *captureStatus_out = hipStreamCaptureStatusNone; + return hipSuccess; } if (!hip::isValid(stream)) { return hipErrorInvalidValue;