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

@ -211,8 +211,8 @@ class MockKernel : public Kernel {
}
}
void setTotalSLMSize(uint32_t size) {
slmTotalSize = size;
void setTotalSLMSize(uint32_t rootDeviceIndex, uint32_t size) {
kernelDeviceInfos[rootDeviceIndex].slmTotalSize = size;
}
void setKernelArguments(std::vector<SimpleKernelArgInfo> kernelArguments) {