Skip to content

Commit 57eb195

Browse files
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>
1 parent 6377675 commit 57eb195

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

opencl/source/cl_device/cl_device_caps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void ClDevice::initializeCaps() {
287287
//copy system info to prevent misaligned reads
288288
const auto systemInfo = hwInfo.gtSystemInfo;
289289

290-
deviceInfo.globalMemCacheSize = systemInfo.L3BankCount * 128 * KB;
290+
deviceInfo.globalMemCacheSize = systemInfo.L3CacheSizeInKb * KB;
291291
deviceInfo.grfSize = hwInfo.capabilityTable.grfSize;
292292

293293
deviceInfo.globalMemCacheType = CL_READ_WRITE_CACHE;

shared/source/gen12lp/hw_info_adlp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ void ADLP_CONFIG::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTable
161161
gtSysInfo->MaxSlicesSupported = ADLP::maxSlicesSupported;
162162
gtSysInfo->MaxSubSlicesSupported = ADLP::maxSubslicesSupported;
163163

164+
gtSysInfo->L3CacheSizeInKb = 1;
164165
gtSysInfo->L3BankCount = 1;
165166

166167
gtSysInfo->CCSInfo.IsValid = true;

shared/source/xe_hp_core/hw_info_xe_hp_sdv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ void XE_HP_SDV_CONFIG::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeature
173173
gtSysInfo->MaxSlicesSupported = gtSysInfo->SliceCount;
174174
gtSysInfo->MaxSubSlicesSupported = gtSysInfo->SubSliceCount;
175175

176+
gtSysInfo->L3CacheSizeInKb = 1;
176177
gtSysInfo->L3BankCount = 1;
177178

178179
gtSysInfo->CCSInfo.IsValid = true;

shared/source/xe_hpc_core/hw_info_pvc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ void PVC_CONFIG::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableA
203203
gtSysInfo->MaxSlicesSupported = gtSysInfo->SliceCount;
204204
gtSysInfo->MaxSubSlicesSupported = gtSysInfo->SubSliceCount;
205205

206+
gtSysInfo->L3CacheSizeInKb = 1;
206207
gtSysInfo->L3BankCount = 1;
207208

208209
gtSysInfo->CCSInfo.IsValid = true;

shared/source/xe_hpg_core/hw_info_dg2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ void DG2_CONFIG::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableA
176176
gtSysInfo->MaxSlicesSupported = gtSysInfo->SliceCount;
177177
gtSysInfo->MaxSubSlicesSupported = gtSysInfo->SubSliceCount;
178178

179+
gtSysInfo->L3CacheSizeInKb = 1;
179180
gtSysInfo->L3BankCount = 1;
180181

181182
gtSysInfo->CCSInfo.IsValid = true;

0 commit comments

Comments
 (0)