mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
Use total SLM instead of inline in error checking
Related-To: NEO-7280 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
380e2dcc35
commit
e1c49d0f23
@@ -101,12 +101,14 @@ class Kernel : public ReferenceTrackedObject<Kernel> {
|
||||
pKernel = nullptr;
|
||||
}
|
||||
|
||||
auto localMemSize = static_cast<uint32_t>(clDevice.getDevice().getDeviceInfo().localMemSize);
|
||||
auto slmInlineSize = kernelInfo.kernelDescriptor.kernelAttributes.slmInlineSize;
|
||||
if (pKernel) {
|
||||
auto localMemSize = static_cast<uint32_t>(clDevice.getDevice().getDeviceInfo().localMemSize);
|
||||
auto slmTotalSize = pKernel->getSlmTotalSize();
|
||||
|
||||
if (slmInlineSize > 0 && localMemSize < slmInlineSize) {
|
||||
PRINT_DEBUG_STRING(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr, "Size of SLM (%u) larger than available (%u)\n", slmInlineSize, localMemSize);
|
||||
retVal = CL_OUT_OF_RESOURCES;
|
||||
if (slmTotalSize > 0 && localMemSize < slmTotalSize) {
|
||||
PRINT_DEBUG_STRING(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr, "Size of SLM (%u) larger than available (%u)\n", slmTotalSize, localMemSize);
|
||||
retVal = CL_OUT_OF_RESOURCES;
|
||||
}
|
||||
}
|
||||
|
||||
if (errcodeRet) {
|
||||
|
||||
Reference in New Issue
Block a user