Store SLM sizes per root device in Kernel

reduce usages of getDefaultKernelInfo

Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-12-18 14:47:42 +00:00
committed by Compute-Runtime-Automation
parent 09bdd2ad09
commit be7ae13911
15 changed files with 48 additions and 39 deletions

View File

@@ -11,7 +11,7 @@
namespace NEO {
bool DispatchInfo::usesSlm() const {
return (kernel == nullptr) ? false : kernel->slmTotalSize > 0;
return (kernel == nullptr) ? false : kernel->getSlmTotalSize(pClDevice->getRootDeviceIndex()) > 0;
}
bool DispatchInfo::usesStatelessPrintfSurface() const {