Skip to content

Commit

Permalink
[tests] Added smoke tests for conv solvers (ConvAsmBwdWrW1x1 and more…
Browse files Browse the repository at this point in the history
…). Some fixes. (#1906)
  • Loading branch information
atamazov authored and alexandraBara committed Mar 14, 2023
1 parent 8639615 commit 837cf48
Show file tree
Hide file tree
Showing 3 changed files with 319 additions and 111 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ macro(set_var_to_condition var)
if(${ARGN})
set(${var} TRUE)
else()
set(${name} FALSE)
set(${var} FALSE)
endif()
endmacro()

Expand Down
8 changes: 2 additions & 6 deletions src/solver/conv_hip_implicit_gemm_bwd_v1r1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,6 @@ bool ConvHipImplicitGemmBwdDataV1R1::IsApplicable(const ConvolutionContext& ctx,
if(!problem.Is2d() && !(problem.Is3d() && problem.IsFp32()))
return false;

// TBD Renable fp16 once the root cause of
// fp16 failures, observed in CI, is resolved.
if(!(problem.IsFp32() || problem.IsBfp16()))
return false;
if(problem.group_counts != 1)
Expand All @@ -654,11 +652,9 @@ bool ConvHipImplicitGemmBwdDataV1R1::IsApplicable(const ConvolutionContext& ctx,
return false;
#if WORKAROUND_ISSUE_309
if(problem.IsBfp16())
return false;
if(!miopen::IsEnabled(MIOPEN_DEBUG_CONV_IMPLICIT_GEMM_HIP_BWD_V1R1{}))
return false;
#endif
if(ctx.GetStream().GetDeviceName() == "gfx90a" &&
problem.conv_problem.IsGfx90aFp16altRequired())
return false;

const auto k = ProblemInterpreter::GetOutputChannelK(problem);
if(k % GetEPackLength(ctx, problem, false) != 0)
Expand Down
Loading

0 comments on commit 837cf48

Please sign in to comment.