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 à :
@@ -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;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur