Skip to content

Commit

Permalink
x64: brgemm matmul copy routines: fix parameters reading
Browse files Browse the repository at this point in the history
  • Loading branch information
ankalinin committed Jan 11, 2025
1 parent e15d2c2 commit 60db9aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cpu/x64/matmul/brgemm_matmul_copy_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,8 @@ struct jit_brgemm_matmul_copy_b_int8_t : public jit_brgemm_matmul_copy_b_t,

constexpr static int reg_src_offs_ = 0;
constexpr static int reg_tr_src_offs_ = 8;
constexpr static int stack_space_needed_ = 16;
constexpr static int reg_current_K_pad_offs_ = 16;
constexpr static int stack_space_needed_ = 24;

const int comp_acc_idx_;

Expand Down Expand Up @@ -2708,9 +2709,11 @@ void jit_brgemm_matmul_copy_b_int8_t<Vmm>::generate() {

auto compute_K_loop = [&](bool is_N_tail) {
int ncolumns = is_N_tail ? conf_->N_tail : conf_->N_blk;
mov(reg_K_iters, ptr[param1 + GET_OFF(current_K_pad)]);
mov(ptr[rsp + reg_current_K_pad_offs_], reg_K_iters);
mov(reg_K_iters, ptr[param1 + GET_OFF(current_K_iters)]);
compute_K_loop_body(reg_K_iters, ncolumns, is_N_tail, false);
mov(reg_K_iters, ptr[param1 + GET_OFF(current_K_pad)]);
mov(reg_K_iters, ptr[rsp + reg_current_K_pad_offs_]);
compute_K_loop_body(reg_K_iters, ncolumns, is_N_tail, true);
};

Expand Down

0 comments on commit 60db9aa

Please sign in to comment.