Skip to content

Commit

Permalink
cpu: x64: brgemm unrolled kernel: don't load from dst if bd_mask exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ankalinin committed Feb 9, 2023
1 parent 87e8ea9 commit 474527f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpu/x64/brgemm/jit_brgemm_amx_uker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,8 @@ void jit_brgemm_amx_uker_base_t::generate() {
// if beta == 1 and C datatype is f32 it is better to perform addition by
// reading tiles directly from C instead of by reading/writing by vectors
may_load_accumulators_
= (brg.beta == 1.f && brg.dt_c == data_type::f32 && !brg.is_bf32);
= (brg.beta == 1.f && brg.dt_c == data_type::f32 && !brg.is_bf32)
&& brg.brgattr.bd_mask_level == 0;
need_to_apply_alpha_beta_
= (brg.beta != 0.f && !may_load_accumulators_) || brg.alpha != 1.f;
const bool has_zero_points = !everyone_is(brgemm_broadcast_t::none,
Expand Down

0 comments on commit 474527f

Please sign in to comment.