Skip to content

Commit e849212

Browse files
bcheng0127sys_zuul
authored andcommitted
local ID support for SIMD16
Change-Id: I0496feb4565682da31970b60264e6e821f39cb10
1 parent 5e1e6d0 commit e849212

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

IGC/Compiler/CISACodeGen/OpenCLKernelCodeGen.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,10 @@ namespace IGC
15691569
if (loadThreadPayload)
15701570
{
15711571
uint perThreadInputSize = SIZE_WORD * 3 * (m_dispatchSize == SIMDMode::SIMD32 ? 32 : 16);
1572+
if (m_dispatchSize == SIMDMode::SIMD16 && getGRFSize() == 64)
1573+
{
1574+
perThreadInputSize *= 2;
1575+
}
15721576
encoder.GetVISAKernel()->AddKernelAttribute("perThreadInputSize", sizeof(uint16_t), &perThreadInputSize);
15731577
}
15741578
}

0 commit comments

Comments
 (0)