SWDEV-287027 - Improve launch bounds error log message
Change-Id: I3229580daa97f141de89bacddfce45cd43f24b19
[ROCm/clr commit: d25dc8af85]
This commit is contained in:
committed by
Anusha Godavarthy Surya
parent
d100715c28
commit
7fd69efe49
@@ -247,7 +247,10 @@ hipError_t ihipLaunchKernel_validate(hipFunction_t f, uint32_t globalWorkSizeX,
|
|||||||
// If it exceeds, then return a failure
|
// If it exceeds, then return a failure
|
||||||
if (blockDimX * blockDimY * blockDimZ >
|
if (blockDimX * blockDimY * blockDimZ >
|
||||||
kernel->getDeviceKernel(*device)->workGroupInfo()->size_) {
|
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;
|
return hipErrorLaunchFailure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user