fix: correct reported num subslices per slice in fused config

Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-07-17 14:29:33 +00:00
committed by Compute-Runtime-Automation
parent 55907c853b
commit 8a60742a8d
2 changed files with 9 additions and 4 deletions

View File

@@ -11,6 +11,7 @@
#include "shared/source/device/device.h"
#include "shared/source/device/device_info.h"
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/compiler_product_helper.h"
#include "shared/source/helpers/get_info.h"
#include "shared/source/helpers/gfx_core_helper.h"
@@ -277,7 +278,7 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
break;
case CL_DEVICE_NUM_SUB_SLICES_PER_SLICE_INTEL: {
const auto &gtSysInfo = getHardwareInfo().gtSystemInfo;
param.uint = gtSysInfo.SubSliceCount / gtSysInfo.SliceCount;
param.uint = static_cast<cl_uint>(Math::divideAndRoundUp(gtSysInfo.SubSliceCount, gtSysInfo.SliceCount));
src = &param.uint;
retSize = srcSize = sizeof(cl_uint);
break;