]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
cmake : Handle mixed-case 'Power' strings in POWER CPU detection (llama/13966)
authorshalinib-ibm <redacted>
Mon, 2 Jun 2025 12:18:36 +0000 (17:48 +0530)
committerGeorgi Gerganov <redacted>
Tue, 10 Jun 2025 06:59:25 +0000 (09:59 +0300)
commit85d39e2ef5366ff5acf88d4c369480981857a8bb
tree033f7d45b0faddd3cde4cd01c248dce5b1d5588a
parentdc0b52e681b8ac2ed2d5bb70709b823ae43868ab
cmake : Handle mixed-case 'Power' strings in POWER CPU detection (llama/13966)

Some systems report the CPU implementation as "Power11" instead of "POWER11".
The existing CMake logic uses a case-sensitive regular expression to extract
the CPU generation, which fails when the casing doesn't exactly match "POWER".

This patch provides a fix by first converting the string to uppercase before applying the regex.

Signed-off-by: root <redacted>
Co-authored-by: root <redacted>
src/ggml-cpu/CMakeLists.txt