SWDEV-182753 - Throw error if launch params>bounds

Change-Id: I5f9931efac37e3149894ca116a1b0c2dcc3e5bc5


[ROCm/clr commit: 2e52ceca29]
このコミットが含まれているのは:
Payam committed 2021-03-12 19:17:08 -05:00
1 親 49d2182dc7
コミット 67fd63192a
1ファイル変更
+7
+7
ファイルの表示
@@ -252,6 +252,13 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
return hipErrorInvalidConfiguration;
}
// Make sure the launch params are not larger than if specified launch_bounds
if (blockDimX * blockDimY * blockDimZ > kernel->getDeviceKernel(device)->workGroupInfo()->size_) {
LogPrintfError("%s", "Launch params are larger than launch bounds");
return hipErrorLaunchFailure;
}
if (params & amd::NDRangeKernelCommand::CooperativeGroups) {
if (!device.info().cooperativeGroups_) {
return hipErrorLaunchFailure;