]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cmake : Handle mixed-case 'Power' strings in POWER CPU detection (#13966)
authorshalinib-ibm <redacted>
Mon, 2 Jun 2025 12:18:36 +0000 (17:48 +0530)
committerGitHub <redacted>
Mon, 2 Jun 2025 12:18:36 +0000 (15:18 +0300)
commit093e3f1feb16e25e58f7d61e01266c830dd424b8
tree888087a5b2f2e596fa767e63e7fb67db2f6bdaaa
parent663445b0deb21fb602176da030d4154197a4fca6
cmake : Handle mixed-case 'Power' strings in POWER CPU detection (#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>
ggml/src/ggml-cpu/CMakeLists.txt