File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -3594,15 +3594,23 @@ namespace IGC
3594
3594
}
3595
3595
else
3596
3596
{
3597
- std::string errorMsg =
3598
- " total scratch space exceeds HW "
3599
- " supported limit for kernel " +
3600
- shader->entry ->getName ().str () + " : " +
3601
- std::to_string (getScratchUse (shader, ctx)) + " bytes (max permitted PTSS " +
3602
- std::to_string (shader->ProgramOutput ()->m_scratchSpaceSizeLimit ) +
3603
- " bytes)" ;
3604
-
3605
- ctx->EmitError (errorMsg.c_str (), nullptr );
3597
+ if (IGC_GET_FLAG_VALUE (ForceSIMDRPELimit) != 0 ) {
3598
+ IGC_SET_FLAG_VALUE (ForceSIMDRPELimit, 0 );
3599
+ ctx->m_retryManager .kernelSet .insert (shader->entry ->getName ().str ());
3600
+ ctx->EmitWarning (" we couldn't compile without exceeding max permitted PTSS, drop SIMD \n " , nullptr );
3601
+ }
3602
+ else {
3603
+
3604
+ std::string errorMsg =
3605
+ " total scratch space exceeds HW "
3606
+ " supported limit for kernel " +
3607
+ shader->entry ->getName ().str () + " : " +
3608
+ std::to_string (getScratchUse (shader, ctx)) + " bytes (max permitted PTSS " +
3609
+ std::to_string (shader->ProgramOutput ()->m_scratchSpaceSizeLimit ) +
3610
+ " bytes)" ;
3611
+
3612
+ ctx->EmitError (errorMsg.c_str (), nullptr );
3613
+ }
3606
3614
}
3607
3615
}
3608
3616
}
You can’t perform that action at this time.
0 commit comments