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 작성하고 Shadi Dashmiz가 2022-11-30 13:45:26 -05:00를 커밋함
1 부모 9ec5dee45c
커밋 7c73bbece6
1 파일이 변경됨
+6
+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;
}