CYBER WATCH / EQUINOXE INTELLIGENCE

← All articles

b12076: metal – fix cpy kernel for dst non-contiguous in dim 0 (#31581)

llama.cpp Releases · 2026-11-03 20:00:48

The `kernel_cpy_t_t` incorrectly indexed the destination’s innermost dimension using an implicit element-size stride instead of `args.nb0`, causing writes to wrong addresses when copying into a permuted view where `nb0` ≠ type size. The new `test-backend-ops cpy` test caught the issue with `permute_dst = {1, 0, 2, 3}`. Addressing remains unchanged when the destination is contiguous in dim 0. The fix was assisted by dsh:llama.cpp/ggml-org/GLM-5.3-Flash-GGUF (Mac Studio, M5 Ultra, 256 GB).

Read original source ↗