mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-10-03 03:25:40 +00:00
metal : fix mask bounds in flash attention block pre-pass (#29220)
This commit is contained in:
parent
c641dfa833
commit
fb34fc262c
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ kernel void kernel_flash_attn_ext_blk(
|
|||
const int32_t i1 = tgpig[1];
|
||||
const int32_t i0 = tgpig[0];
|
||||
|
||||
char res = i0*C + C > args.ne30 ? 1 : 0;
|
||||
char res = i0*C + C > args.ne30 || i1*Q + Q > args.ne31 ? 1 : 0;
|
||||
|
||||
device const half * mask_src = (device const half *) (mask + (i1*Q)*args.nb31 + i2*args.nb32 + i3*args.nb33) + i0*C + tiisg;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue