]> git.djapps.eu Git - pkg/ggml/sources/whisper.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)
committerGeorgi Gerganov <redacted>
Fri, 7 Aug 2026 18:59:49 +0000 (21:59 +0300)
commit5693378610931163156cfbb15dd221fdffb50954
tree3319941fe13f5ecf3fef08d8ac6cdbc6c4eaf08e
parent69bd0a9ac5058585004d5063ac102dbd0427fe00
metal : avoid `threadgroup` matrix array instantiation in kernel_lightning_indexer (llama/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