Skip to content

Commit b8028d7

Browse files
PVC: Fix compute units for scratch calculation
Signed-off-by: Bartosz Dunajski <[email protected]>
1 parent c8ba97e commit b8028d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opencl/test/unit_test/xe_hpc_core/hw_helper_tests_xe_hpc_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ XE_HPC_CORETEST_F(HwHelperTestsXeHpcCore, GivenRevisionIdWhenGetComputeUnitsUsed
10691069
{0x3, 16},
10701070
{0x5, 16},
10711071
{0x6, 16},
1072-
{0x7, 8},
1072+
{0x7, 16},
10731073
};
10741074

10751075
for (auto &testInput : testInputs) {

shared/source/xe_hpc_core/hw_helper_xe_hpc_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ uint32_t HwHelperHw<Family>::getComputeUnitsUsedForScratch(const HardwareInfo *p
411411
}
412412

413413
auto revId = pHwInfo->platform.usRevId & Family::pvcSteppingBits;
414-
uint32_t threadEuRatio = ((0x3 <= revId) && (revId <= 0x6) && !Family::isXtTemporary(*pHwInfo)) ? 16 : 8;
414+
uint32_t threadEuRatio = ((0x3 <= revId) && !Family::isXtTemporary(*pHwInfo)) ? 16 : 8;
415415

416416
return pHwInfo->gtSystemInfo.MaxSubSlicesSupported * pHwInfo->gtSystemInfo.MaxEuPerSubSlice * threadEuRatio;
417417
}

0 commit comments

Comments
 (0)