SWDEV-314982 - hipStreamGetCaptureInfo seq ID ptr check
Change-Id: I84a84121d2064182f0daea22578f0fa5f94f850c
이 커밋은 다음에 포함됨:
1 부모
2ef41ff5be
커밋
8c103bb898
1 파일이 변경됨
+2
-2
@@ -1261,8 +1261,8 @@ hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus* p
|
||||
}
|
||||
hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
|
||||
*pCaptureStatus = s->GetCaptureStatus();
|
||||
if (*pCaptureStatus == hipStreamCaptureStatusActive) {
|
||||
pId = reinterpret_cast<unsigned long long*>(s->GetCaptureID());
|
||||
if (*pCaptureStatus == hipStreamCaptureStatusActive && pId != nullptr) {
|
||||
*pId = s->GetCaptureID();
|
||||
}
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
새 이슈에서 참조
사용자 차단