]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml-cpu: Fix gcc 15 ICE on ppc64le (ggml/20083) (llama/20130)
authorshalinib-ibm <redacted>
Fri, 6 Mar 2026 15:22:39 +0000 (20:52 +0530)
committerGeorgi Gerganov <redacted>
Mon, 16 Mar 2026 11:10:15 +0000 (13:10 +0200)
commit548f2e51907ee66a07bbe96b791f79f88e61d5c9
tree782bff34b4c372146f3af620b4eeb1064d181d5b
parentd2d235f4679b3177e4c662d589d973550e06ab2c
ggml-cpu: Fix gcc 15 ICE on ppc64le (ggml/20083) (llama/20130)

This patch addresses an Internal Compiler Error (Segmentation fault)
observed with gcc 15 by replacing the intrinsic + cast by doing
a cat on the data first and then calling the intrinsic. This bypasses the
buggy compiler path while maintaining identical instruction selection.

Performance Verification:
Assembly analysis on RHEL 9 (GCC 15.1.1) confirms that both the original
code and this fix generate the identical Power10 prefixed load instruction:
    `plxv 40, 2(14)`

This ensures zero performance regression while unblocking builds on
newer toolchains.

Reproduced on:
- Alpine Linux + GCC 15.2.0-r2
- RHEL 9  + GCC 15.1.1 (gcc-toolset-15)

Signed-off-by: Shalini Salomi Bodapati <redacted>
ggml/src/ggml-cpu/llamafile/sgemm.cpp