mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
906aa485a8
commit
d03ba275c5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user