SWDEV-315614 - hipStreamGetCaptureInfo to return seq id based on status

Change-Id: Ibceeb67fcd60b3ad2272e08a3ee682dc36bda1cb
Этот коммит содержится в:
Ajay
2022-02-03 00:38:00 +00:00
коммит произвёл Ajay GunaShekar
родитель e5496b3159
Коммит 32b9969db3
+3 -1
Просмотреть файл
@@ -1144,7 +1144,9 @@ hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus* p
}
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
*pCaptureStatus = s->GetCaptureStatus();
*pId = s->GetCaptureID();
if (*pCaptureStatus == hipStreamCaptureStatusActive) {
*pId = s->GetCaptureID();
}
HIP_RETURN(hipSuccess);
}