mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Print warning when kernel uses too much SLM
Instead of just returning proper error code in case of exceeding available Shared Local Memory size we also want to print error message to make debugging easier. Related-To: NEO-7280 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d4cddc7ecd
commit
7953d15826
@@ -216,6 +216,8 @@ cl_int Program::processProgramInfo(ProgramInfo &src, const ClDevice &clDevice) {
|
||||
setLinkerInput(rootDeviceIndex, std::move(src.linkerInput));
|
||||
|
||||
if (slmNeeded > slmAvailable) {
|
||||
PRINT_DEBUG_STRING(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr, "Size of SLM (%u) larger than available (%u)\n",
|
||||
static_cast<uint32_t>(slmNeeded), static_cast<uint32_t>(slmAvailable));
|
||||
return CL_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user