Skip to content

Commit c619c08

Browse files
committed
metal : fix -INF detection logic
1 parent fdedda0 commit c619c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-metal/ggml-metal.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4559,7 +4559,7 @@ kernel void kernel_flash_attn_ext_blk(
45594559

45604560
FOR_UNROLL (short j = 0; j < Q; ++j) {
45614561
FOR_UNROLL (short ii = 0; ii < C/NW; ++ii) {
4562-
m = max(m, *mask_src);
4562+
m = max(m, mask_src[ii*NW]);
45634563
}
45644564

45654565
mask_src += args.nb31/2;

0 commit comments

Comments
 (0)