From 7c73bbece6f34c8e5cc20cc51cec21d9079bbb4e Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Tue, 29 Nov 2022 11:18:54 -0500 Subject: [PATCH] SWDEV-366974 - return implicit capture for null stream - return implicit error if null sream is passed while blocing stream is in operation Signed-off-by: sdashmiz Change-Id: I4d867a0bddd855e2c0d3eb9b769d5d36412c20c0 [ROCm/clr commit: f93dfb2a4e584ab15c2232690433e3c3eaa12a31] --- projects/clr/hipamd/src/hip_graph.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index 34df77cd7d..c0995f9415 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -1456,6 +1456,9 @@ hipError_t hipStreamGetCaptureInfo_common(hipStream_t stream, if (pCaptureStatus == nullptr || !hip::isValid(stream)) { return hipErrorInvalidValue; } + if (hip::Stream::StreamCaptureBlocking() == true && stream == nullptr) { + return hipErrorStreamCaptureImplicit; + } if (stream == nullptr) { return hipErrorUnknown; } @@ -1488,6 +1491,9 @@ hipError_t hipStreamGetCaptureInfo_v2_common(hipStream_t stream, if (captureStatus_out == nullptr) { return hipErrorInvalidValue; } + if (hip::Stream::StreamCaptureBlocking() == true && stream == nullptr) { + return hipErrorStreamCaptureImplicit; + } if (stream == nullptr) { return hipErrorUnknown; }