Skip to content

Commit 04e24cd

Browse files
limit max GRF if kernel is SIMD16
Limit max GRF if kernel is SIMD16.
1 parent 555731c commit 04e24cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4603,6 +4603,13 @@ namespace IGC
46034603
SaveOption(vISA_AutoGRFSelection, true);
46044604
}
46054605

4606+
if (m_program->m_Platform->supportsAutoGRFSelection() &&
4607+
m_program->m_Platform->getPlatformInfo().eProductFamily == IGFX_PVC &&
4608+
m_program->m_dispatchSize == SIMDMode::SIMD16)
4609+
{
4610+
SaveOption(vISA_MaxGRFNum, unsigned(128));
4611+
}
4612+
46064613
// Emit warnings if mismatch is found in user input
46074614
// Mismatch between number of threads and GRF size (per module)
46084615
if (ClContext->getNumThreadsPerEU() > 0 && ClContext->getExpGRFSize() > 0 &&

0 commit comments

Comments
 (0)