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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user