Don't generate local ids if not needed

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
Krystian Chmielewski
2021-11-05 13:48:42 +00:00
committed by Compute-Runtime-Automation
parent dab131daa0
commit 98eb086160
4 changed files with 4 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ TEST_F(KernelImpSetGroupSizeTest, WhenCalculatingLocalIdsThenGrfSizeIsTakenFromC
Mock<Kernel> mockKernel;
Mock<Module> mockModule(this->device, nullptr);
mockKernel.descriptor.kernelAttributes.simdSize = 1;
mockKernel.descriptor.kernelAttributes.numLocalIdChannels = 3;
mockKernel.module = &mockModule;
auto grfSize = mockModule.getDevice()->getHwInfo().capabilityTable.grfSize;
uint32_t groupSize[3] = {2, 3, 5};