test: use explicit value in NumSubSlicesPerSlice ULT

Related-To: NEO-10060

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
This commit is contained in:
Wenbin Lu
2024-11-22 15:45:43 +00:00
committed by Compute-Runtime-Automation
parent 906aa485a8
commit d03ba275c5

View File

@@ -5,7 +5,6 @@
*
*/
#include "shared/source/helpers/basic_math.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/test/common/test_macros/test.h"
@@ -45,6 +44,6 @@ TEST(HwInfoTest, givenHwInfoWhenQueryNumSubSlicesPerSliceThenCorrectNumberIsRetu
HardwareInfo hwInfo{};
hwInfo.gtSystemInfo.SliceCount = 2;
hwInfo.gtSystemInfo.SubSliceCount = 7;
auto expectedNumSubSlicesPerSlice = static_cast<uint32_t>(Math::divideAndRoundUp(hwInfo.gtSystemInfo.SubSliceCount, hwInfo.gtSystemInfo.SliceCount));
uint32_t expectedNumSubSlicesPerSlice = 4;
EXPECT_EQ(getNumSubSlicesPerSlice(hwInfo), expectedNumSubSlicesPerSlice);
}