SWDEV-313905 - Fix segfault

Change-Id: I7b7bbe80a169014b5d4a8de134351b9f8bf11735


[ROCm/clr commit: 017603703b]
Bu işleme şunda yer alıyor:
Sarbojit Sarkar authored and Sarbojit Sarkar committed 2022-01-11 23:40:25 -05:00
1 ebeveyn 641d0b9d6f
işleme 8f0c0822ad
2 files changed
+5 -1

No files matched your search

+4
Dosyayı Görüntüle
@@ -518,6 +518,10 @@ hipError_t hipLaunchCooperativeKernel(const void* f,
HIP_INIT_API(hipLaunchCooperativeKernel, f, gridDim, blockDim,
sharedMemBytes, hStream);
if (!hip::isValid(hStream)) {
HIP_RETURN(hipErrorInvalidValue);
}
hipFunction_t func = nullptr;
int deviceId = hip::Stream::DeviceId(hStream);
HIP_RETURN_ONFAIL(PlatformState::instance().getStatFunc(&func, f, deviceId));