Skip to content

Commit

Permalink
gpu: jit: conv: limit mad_g_small_oc case to small g
Browse files Browse the repository at this point in the history
  • Loading branch information
kealan-barbieri authored and karturov committed Apr 18, 2023
1 parent 36aa622 commit 8710839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpu/jit/conv/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ bool is_small_oc(const conv_problem_t &prb) {
}

bool is_mad_g_small_oc(const conv_config_t &cfg) {
return (cfg.prb().g > 1 && cfg.fma_kind() == fma_kind_t::mad
&& is_small_oc(cfg.prb()));
return (cfg.prb().g > 1 && cfg.prb().g < 16
&& cfg.fma_kind() == fma_kind_t::mad && is_small_oc(cfg.prb()));
}

bool is_dw_large_mb(const conv_problem_t &prb) {
Expand Down

0 comments on commit 8710839

Please sign in to comment.