mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-28 12:24:35 +00:00
metal : fix array initialization
This commit is contained in:
parent
5fcb9c1c5a
commit
d073e4f933
@ -2084,8 +2084,8 @@ kernel void kernel_flash_attn_ext_f16(
|
|||||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||||
|
|
||||||
{
|
{
|
||||||
half S[Q] = { 0.0h };
|
half S[Q] = { [0 ... Q-1] = 0.0h };
|
||||||
half M[Q] = { -INFINITY };
|
half M[Q] = { [0 ... Q-1] = -INFINITY };
|
||||||
|
|
||||||
// assume K and V are same shape
|
// assume K and V are same shape
|
||||||
const int64_t ne22 = ne12;
|
const int64_t ne22 = ne12;
|
||||||
|
Loading…
Reference in New Issue
Block a user