Correct calculating of CL_DEVICE_GLOBAL_MEM_CACHE_SIZE value

Related-To: NEO-6991, NEO-6993

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2022-05-23 18:58:36 +00:00
committed by Compute-Runtime-Automation
parent 637767500d
commit 57eb195571
5 changed files with 5 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ void ClDevice::initializeCaps() {
//copy system info to prevent misaligned reads
const auto systemInfo = hwInfo.gtSystemInfo;
deviceInfo.globalMemCacheSize = systemInfo.L3BankCount * 128 * KB;
deviceInfo.globalMemCacheSize = systemInfo.L3CacheSizeInKb * KB;
deviceInfo.grfSize = hwInfo.capabilityTable.grfSize;
deviceInfo.globalMemCacheType = CL_READ_WRITE_CACHE;