]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/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 09:40:33 +0000 (12:40 +0300)
commit126aeb4a497f7e91b69c3ba383d19270e951c3a7
tree46f49e7438ccc9d2c1886679a3c401aa2b39b8bb
parentef2a79d2b83d92953690efec23060668677e530e
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>
ggml/src/ggml-cpu/CMakeLists.txt