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
Cette révision appartient à :
sdashmiz
2022-11-28 15:00:37 -05:00
révisé par Shadi Dashmiz
Parent 5acc2cdcc2
révision fefff25364
+4 -2
Voir le fichier
@@ -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;