SWDEV-373147 - Return error when getDeviceKernel returns nullptr

Change-Id: Ie9fcaa2bff87cb8ef363dc7e8362b74b8725b3b6


[ROCm/clr commit: 707ca92a80]
Bu işleme şunda yer alıyor:
Anusha GodavarthySurya authored and Anusha Godavarthy Surya committed 2022-12-21 22:14:10 -05:00
1 ebeveyn 0019cfdf7c
işleme b534cb32d2
1 file changed
+3
+3
Dosyayı Görüntüle
@@ -230,6 +230,9 @@ hipError_t ihipLaunchKernel_validate(hipFunction_t f, uint32_t globalWorkSizeX,
}
hip::DeviceFunc* function = hip::DeviceFunc::asFunction(f);
amd::Kernel* kernel = function->kernel();
if (!kernel->getDeviceKernel(*device)) {
return hipErrorInvalidDevice;
}
// Make sure the launch params are not larger than if specified launch_bounds
// If it exceeds, then return a failure
if (blockDimX * blockDimY * blockDimZ >