SWDEV-312099 - hipsteam capture API status report fix

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Iee0bbad978f3ca89ff81e5a8583c0aa9cfcb4098


[ROCm/clr commit: 981125aacc]
Este commit está contenido en:
sdashmiz
2021-11-19 15:23:25 -05:00
cometido por Shadi Dashmiz
padre 9761126154
commit 5f5adf0b09
+6 -2
Ver fichero
@@ -678,10 +678,14 @@ hipError_t capturehipLaunchHostFunc(hipStream_t& stream, hipHostFn_t& fn, void*&
hipError_t hipStreamIsCapturing(hipStream_t stream, hipStreamCaptureStatus* pCaptureStatus) {
HIP_INIT_API(hipStreamIsCapturing, stream, pCaptureStatus);
if (stream == nullptr || !hip::isValid(stream)) {
if (pCaptureStatus == nullptr || !hip::isValid(stream)) {
HIP_RETURN(hipErrorInvalidValue);
}
*pCaptureStatus = reinterpret_cast<hip::Stream*>(stream)->GetCaptureStatus();
if (stream == nullptr) {
*pCaptureStatus = hipStreamCaptureStatusNone;
} else {
*pCaptureStatus = reinterpret_cast<hip::Stream*>(stream)->GetCaptureStatus();
}
HIP_RETURN(hipSuccess);
}