Skip to content

Commit

Permalink
xe: jit: gemm: fix SLM remask condition for zp
Browse files Browse the repository at this point in the history
  • Loading branch information
petercad committed Jul 12, 2024
1 parent 5897aa0 commit 604f27f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gpu/intel/jit/gemm/gen_gemm_kernel_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14756,7 +14756,8 @@ void gemm_kernel_generator_t<hw>::kLoopActivateSLMRemainder(bool active,
loadMasks(kMasksBi, remsBi, offsetsBi, strategy, state);
}

bool mayAccessAllK = (minOPCount > 1) || problem.sumA || problem.sumB;
bool mayAccessAllK
= (minOPCount > 1) || problem.needsASums() || problem.needsBSums();
bool asIfMaskedAi = Ai_lateKRem && state.Ai_strategy.padded;
bool asIfMaskedBi = Bi_lateKRem && state.Bi_strategy.padded;
slmRemaskA = slmA && mayAccessAllK && !Ai_remIncrCopy
Expand Down

0 comments on commit 604f27f

Please sign in to comment.