File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1170,6 +1170,7 @@ bool TranslateBuild(
1170
1170
if ( IGC_GET_FLAG_VALUE ( ForceFastestSIMD ) )
1171
1171
{
1172
1172
oclContext.m_retryManager .AdvanceState ();
1173
+ oclContext.m_retryManager .SetFirstStateId (oclContext.m_retryManager .GetRetryId ());
1173
1174
}
1174
1175
// Optimize the IR. This happens once for each program, not per-kernel.
1175
1176
IGC::OptimizeIR (&oclContext);
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ namespace IGC
92
92
IGC_ASSERT (stateId < getStateCnt ());
93
93
return RetryTable[stateId].allowLargeURBWrite ;
94
94
}
95
+ void RetryManager::SetFirstStateId (int id) {
96
+ firstStateId = id;
97
+ }
95
98
bool RetryManager::IsFirstTry () {
96
99
return (stateId == firstStateId);
97
100
}
Original file line number Diff line number Diff line change @@ -745,6 +745,7 @@ namespace IGC
745
745
bool AllowCodeSinking ();
746
746
bool AllowSimd32Slicing ();
747
747
bool AllowLargeURBWrite ();
748
+ void SetFirstStateId (int id);
748
749
bool IsFirstTry ();
749
750
bool IsLastTry ();
750
751
unsigned GetRetryId () const ;
You can’t perform that action at this time.
0 commit comments