SWDEV-508973 - If total # of threads/block is more than HW capacity, it's invalid config issue and should return invalid config error. (#25)

[ROCm/clr commit: 8531cd3bbe]
Tá an tiomantas seo le fáil i:
Patel, Jaydeepkumar údaraithe agus GitHub tiomanta 2025-04-10 15:16:16 +05:30
1 tuismitheoir 81a566e397
tiomantas dea880f9da
1 comhad athraithe
+3 -1
+3 -1
Féach ar an gComhad
@@ -285,7 +285,9 @@ hipError_t ihipLaunchKernel_validate(hipFunction_t f, uint32_t globalWorkSizeX,
}
// Make sure dispatch doesn't exceed max workgroup size limit
if (blockDimX * blockDimY * blockDimZ > info.maxWorkGroupSize_) {
return hipErrorInvalidValue;
return (DEBUG_HIP_7_PREVIEW & amd::CHANGE_HIP_LAUNCH_KERNEL) ?
hipErrorInvalidConfiguration :
hipErrorInvalidValue;
}
hip::DeviceFunc* function = hip::DeviceFunc::asFunction(f);
amd::Kernel* kernel = function->kernel();