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 <shadi.dashmiz@amd.com>
Change-Id: I4d867a0bddd855e2c0d3eb9b769d5d36412c20c0


[ROCm/clr commit: f93dfb2a4e]
이 커밋은 다음에 포함됨:
sdashmiz
2022-11-29 11:18:54 -05:00
커밋한 사람 Shadi Dashmiz
부모 9ec5dee45c
커밋 7c73bbece6
+6
파일 보기
@@ -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;
}