]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
metal : avoid `threadgroup` matrix array instantiation in kernel_lightning_indexer...
authorJamePeng <redacted>
Fri, 7 Aug 2026 04:49:14 +0000 (12:49 +0800)
committerGitHub <redacted>
Fri, 7 Aug 2026 04:49:14 +0000 (07:49 +0300)
commite40bf886420d9449cee9aab8a417081cde4620d1
treed2f8d6f03d407a540d97038fa114095345e0b549
parent15586e2d7165570fb3aa7c26e0d442e289ef69de
metal : avoid `threadgroup` matrix array instantiation in kernel_lightning_indexer (#26646)

- In MSL, declaring an array of matrix types like `threadgroup half4x4` causes
a 'no matching constructor' compilation error because MSL matrix types do not
have zero-argument default constructors and threadgroup variables cannot have
initializers.

- Fix this by declaring a POD `threadgroup half` array instead and casting
to `threadgroup half4x4 *` for matrix indexing.

Signed-off-by: JamePeng <redacted>
ggml/src/ggml-metal/ggml-metal.metal