Skip to content

Conversation

@shalinib-ibm
Copy link
Contributor

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.

Make sure to read the contributing guidelines before submitting a PR

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 <[email protected]>
@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Jun 2, 2025
@ggerganov ggerganov merged commit 093e3f1 into ggml-org:master Jun 2, 2025
42 of 46 checks passed
furyhawk pushed a commit to furyhawk/llama.cpp that referenced this pull request Jun 6, 2025
…l-org#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 <[email protected]>
Co-authored-by: root <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants