File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2186,7 +2186,8 @@ RETVAL CGen8OpenCLStateProcessor::CreatePatchList(
21862186 size = program->simd16 .m_funcSymbolTableSize ;
21872187 entries = program->simd16 .m_funcSymbolTableEntries ;
21882188 }
2189- else if (annotations.m_executionEnivronment .CompiledSIMDSize == 32 )
2189+ else if (annotations.m_executionEnivronment .CompiledSIMDSize == 32 ||
2190+ annotations.m_executionEnivronment .CompiledSIMDSize == 1 )
21902191 {
21912192 buffer = program->simd32 .m_funcSymbolTable ;
21922193 size = program->simd32 .m_funcSymbolTableSize ;
@@ -2240,7 +2241,10 @@ RETVAL CGen8OpenCLStateProcessor::CreatePatchList(
22402241 size = program->simd16 .m_funcRelocationTableSize ;
22412242 entries = program->simd16 .m_funcRelocationTableEntries ;
22422243 }
2243- else if (annotations.m_executionEnivronment .CompiledSIMDSize == 32 )
2244+ // CM kernels are dispatched with CompiledSIMDSize == 1, this is just a contract
2245+ // between igcmc and patch token generator, shouldn't break existing scenarios for IGC
2246+ else if (annotations.m_executionEnivronment .CompiledSIMDSize == 32 ||
2247+ annotations.m_executionEnivronment .CompiledSIMDSize == 1 )
22442248 {
22452249 buffer = program->simd32 .m_funcRelocationTable ;
22462250 size = program->simd32 .m_funcRelocationTableSize ;
You can’t perform that action at this time.
0 commit comments