Skip to content

Commit

Permalink
[FORK][FIX] Restore choose_loop_order logic for weights decompression…
Browse files Browse the repository at this point in the history
… case
  • Loading branch information
dmitry-gorokhov committed Jul 11, 2024
1 parent dc69ce5 commit 00c3465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpu/x64/jit_brgemm_inner_product_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,8 @@ void jit_brgemm_ip_fwd_conf_t::choose_loop_order() {
const bool is_int8 = one_of(src_dt, u8, s8) && wei_dt == s8;
const bool is_compute_amx = (is_xf16 || is_int8) && is_amx;

if ((os_block < 32 || do_occ_osc) && (is_compute_amx || is_f32_avx2))
// Better to keep ocb loop outermost for weights_decompression case due to overhead on weights unpack into intermediate buffer
if ((os_block < 32 || do_occ_osc) && (is_compute_amx || is_f32_avx2) && !weights_decompression)
loop_order = icc_occ_osc_ocb_osb;
}

Expand Down

0 comments on commit 00c3465

Please sign in to comment.