SWDEV-187253 - Print warning if launch_params > bounds

Change-Id: I138546bf816887576e797105f97ce37245911045


[ROCm/clr commit: dff604f557]
Dieser Commit ist enthalten in:
Maneesh Gupta committed 2021-03-24 22:29:19 -07:00
1 Ursprung d21f8da966
Commit f4eb8f4945
1 Datei geändert
+2 -2
+2 -2
Datei anzeigen
@@ -253,9 +253,9 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
}
// Make sure the launch params are not larger than if specified launch_bounds
// If it exceeds, then print a warning and continue for now
if (blockDimX * blockDimY * blockDimZ > kernel->getDeviceKernel(device)->workGroupInfo()->size_) {
LogPrintfError("%s", "Launch params are larger than launch bounds");
return hipErrorLaunchFailure;
LogPrintfWarning("%s", "Launch params are larger than launch bounds");
}