whisper.cpp/ggml
Yash Raj Pandey b3bc904638 ggml : require contiguous src for ROLL on CUDA and Metal (llama/25928)
ggml_roll only asserts nb[0] == ggml_type_size, so a permuted src is a
valid input, but the CUDA and Metal roll kernels index by ne alone and
never read the nb strides. A non-contiguous src therefore produced
silently wrong results. Neither backend declared a contiguity
requirement in supports_op, so the scheduler did not fall back to the
CPU implementation, which does handle strides correctly.

Add the requirement to both backends, matching the existing
GGML_OP_ROPE guard, and add a permuted test_roll case.
2026-08-14 22:16:06 +03:00
..
cmake cmake : add config version support (ggml/1582) 2026-08-14 22:16:06 +03:00
include mtmd/ggml: add ggml_build_forward_order (llama/26649) 2026-08-07 21:59:49 +03:00
src ggml : require contiguous src for ROLL on CUDA and Metal (llama/25928) 2026-08-14 22:16:06 +03:00
.gitignore whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
CMakeLists.txt cmake : add config version support (ggml/1582) 2026-08-14 22:16:06 +03:00