]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml-amx : fix ggml_amx_init() on generic Linux (llama/16049)
authorAdrien Gallouët <redacted>
Thu, 18 Sep 2025 21:07:26 +0000 (23:07 +0200)
committerGeorgi Gerganov <redacted>
Sat, 20 Sep 2025 10:46:39 +0000 (13:46 +0300)
commit4d8cd078251f395d3415af75c100a464c4e0e97d
treeac964a869d331e94195e131a17df32b3f2394774
parent4575f968735770b63de204d52ea9db182322f32a
ggml-amx : fix ggml_amx_init() on generic Linux (llama/16049)

Generalize Linux check to `__linux__` to support non-glibc systems (like musl).
Also, return `false` on unknown/untested OS.

Without this commit, the code compiles (with warnings) but fails:

    register_backend: registered backend CPU (1 devices)
    register_device: registered device CPU (Intel(R) Xeon(R) Platinum 8488C)
    build: 6487 (51c4cac6) with x86_64-linux-musl-gcc (GCC) 15.1.0 for x86_64-linux-musl (debug)
    system info: n_threads = 8, n_threads_batch = 8, total_threads = 16
    ....
    print_info: n_ctx_orig_yarn  = 262144
    print_info: rope_finetuned   = unknown
    print_info: model type       = 4B
    Illegal instruction (core dumped)

Signed-off-by: Adrien Gallouët <redacted>
ggml/src/ggml-cpu/amx/amx.cpp