From 8b45dcef22cdd3921730e86870b90eb1f98c9d27 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Wed, 24 Mar 2021 22:27:59 -0700 Subject: [PATCH] SWDEV-187253 - Print warning if launch_params > bounds Change-Id: I138546bf816887576e797105f97ce37245911045 [ROCm/hip commit: b2cb34f51967ba289bc3e865d895b29347acb3b1] --- projects/hip/rocclr/hip_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/rocclr/hip_module.cpp b/projects/hip/rocclr/hip_module.cpp index dadd6d482f..66bba3f13f 100755 --- a/projects/hip/rocclr/hip_module.cpp +++ b/projects/hip/rocclr/hip_module.cpp @@ -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"); }