From d25dc8af854dc7ef32147c0def61bac7b79a69a9 Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Wed, 26 May 2021 11:02:51 -0700 Subject: [PATCH] SWDEV-287027 - Improve launch bounds error log message Change-Id: I3229580daa97f141de89bacddfce45cd43f24b19 --- hipamd/rocclr/hip_module.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hipamd/rocclr/hip_module.cpp b/hipamd/rocclr/hip_module.cpp index 464473b1a8..59401dbdd2 100755 --- a/hipamd/rocclr/hip_module.cpp +++ b/hipamd/rocclr/hip_module.cpp @@ -247,7 +247,10 @@ hipError_t ihipLaunchKernel_validate(hipFunction_t f, uint32_t globalWorkSizeX, // If it exceeds, then return a failure if (blockDimX * blockDimY * blockDimZ > kernel->getDeviceKernel(*device)->workGroupInfo()->size_) { - LogPrintfError("%s", "Launch params are larger than launch bounds"); + LogPrintfError("Launch params (%u, %u, %u) are larger than launch bounds (%lu) for kernel %s", + blockDimX, blockDimY, blockDimZ, + kernel->getDeviceKernel(*device)->workGroupInfo()->size_, + function->name().c_str()); return hipErrorLaunchFailure; }