Skip to content

Commit

Permalink
workaround_issue_2492(04) [quality] Make the compuation of max granul…
Browse files Browse the repository at this point in the history
…arity loss more clear.
  • Loading branch information
atamazov committed Nov 7, 2023
1 parent 6530353 commit f186faf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/solver/conv_winoRxS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,12 @@ static bool IsApplicableBase(const ExecutionContext& ctx, const ProblemDescripti
#if WORKAROUND_ISSUE_2493
if(!miopen::IsDisabled(MIOPEN_DEBUG_WORKAROUND_ISSUE_2493{}) && !miopen::debug::IsWarmupOngoing)
{
if(ShaderModel(ctx, problem, Winodata, Winofilter).GetGranularityLoss() > 0.995)
constexpr double max_perf_drop_due_to_granularity = 200; // Times.
if(ShaderModel(ctx, problem, Winodata, Winofilter).GetGranularityLoss() >
(1.0 - 1.0 / max_perf_drop_due_to_granularity))
{
return false;
}
}
#endif

Expand Down

0 comments on commit f186faf

Please sign in to comment.