SWDEV-367833 - return success for null stream

- return success for query on null stream

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ifc2cf705e1962565c68de7b1777f870c5a4d56cf
이 커밋은 다음에 포함됨:
sdashmiz 작성하고 Shadi Dashmiz가 2022-12-08 11:41:37 -05:00를 커밋함
1 부모 5acc2cdcc2
커밋 fefff25364
1 파일이 변경됨
+4 -2
+4 -2
파일 보기
@@ -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<hip::Stream*>(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;