Skip to content

Commit

Permalink
fix tidy error
Browse files Browse the repository at this point in the history
  • Loading branch information
carlushuang committed Oct 23, 2023
1 parent 7f2f6ae commit d75aace
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/solver/gemm_bwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@ size_t GemmBwd1x1_stride2::GetWorkspaceSize(const ExecutionContext& context,
bool GemmBwd1x1_stride2::IsApplicable(const ExecutionContext& context,
const conv::ProblemDescription& problem) const
{
#if MIOPEN_USE_GEMM
#if WORKAROUND_MIOPENGEMM_ISSUE_2474
return false;
#endif
#if MIOPEN_USE_GEMM && !WORKAROUND_MIOPENGEMM_ISSUE_2474
if(!GemmBwdBase::IsApplicable(context, problem))
return false;

Expand Down Expand Up @@ -486,9 +483,8 @@ bool GemmBwd1x1_stride1::IsApplicableBeforeWorkaround(const ExecutionContext& co
bool GemmBwd1x1_stride1::IsApplicable(const ExecutionContext& context,
const conv::ProblemDescription& problem) const
{
#if WORKAROUND_MIOPENGEMM_ISSUE_2474
return false;
#elif MIOPEN_USE_GEMM && (!MIOPEN_USE_MIOPENGEMM || !WORKAROUND_MIOPENGEMM_ISSUE_59)
#if MIOPEN_USE_GEMM && (!MIOPEN_USE_MIOPENGEMM || !WORKAROUND_MIOPENGEMM_ISSUE_59) && \
!WORKAROUND_MIOPENGEMM_ISSUE_2474
return IsApplicableBeforeWorkaround(context, problem);
#else
std::ignore = context;
Expand Down Expand Up @@ -688,10 +684,7 @@ size_t GemmBwdRest::GetWorkspaceSize(const ExecutionContext& context,
bool GemmBwdRest::IsApplicable(const ExecutionContext& context,
const conv::ProblemDescription& problem) const
{
#if MIOPEN_USE_GEMM
#if WORKAROUND_MIOPENGEMM_ISSUE_2474
return false;
#endif
#if MIOPEN_USE_GEMM && !WORKAROUND_MIOPENGEMM_ISSUE_2474
if(!GemmBwdBase::IsApplicable(context, problem))
return false;

Expand Down

0 comments on commit d75aace

Please sign in to comment.