Skip to content

Commit 5d88952

Browse files
Fix unused local variable warning
Signed-off-by: Rafal Maziejuk <[email protected]>
1 parent 82e29fd commit 5d88952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/source/xe_hpc_core/command_encoder_xe_hpc_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ void EncodeDispatchKernel<Family>::adjustTimestampPacket(WALKER_TYPE &walkerCmd,
3333
template <>
3434
void EncodeDispatchKernel<Family>::adjustInterfaceDescriptorData(INTERFACE_DESCRIPTOR_DATA &interfaceDescriptor, const HardwareInfo &hwInfo, const uint32_t threadGroupCount, const uint32_t numGrf) {
3535
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
36-
auto &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
3736

3837
if (hwInfoConfig.isDisableOverdispatchAvailable(hwInfo)) {
3938
interfaceDescriptor.setThreadGroupDispatchSize(INTERFACE_DESCRIPTOR_DATA::THREAD_GROUP_DISPATCH_SIZE_TG_SIZE_1);
@@ -43,6 +42,7 @@ void EncodeDispatchKernel<Family>::adjustInterfaceDescriptorData(INTERFACE_DESCR
4342

4443
constexpr uint32_t maxThreadsInTGForTGDispatchSize8 = 16u;
4544
constexpr uint32_t maxThreadsInTGForTGDispatchSize4 = 32u;
45+
auto &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
4646
uint32_t availableThreadCount = hwHelper.calculateAvailableThreadCount(hwInfo, numGrf);
4747
uint32_t numberOfThreadsInThreadGroup = interfaceDescriptor.getNumberOfThreadsInGpgpuThreadGroup();
4848
uint32_t dispatchedTotalThreadCount = numberOfThreadsInThreadGroup * threadGroupCount;

0 commit comments

Comments
 (0)