Repository navigation
ggml: Conditionally enable power11 backend based on compiler support - #24687
Conversation
Guard POWER11 backend creation behind a compiler flag check for -mcpu=power11. This avoids build failures on current GCC/Clang toolchains while preserving forward compatibility once POWER11 support becomes available.
|
@taronaeo @ggerganov Can you please help review this PR. |
|
Nice! This is going to be quite a problem for awhile; we had the same problem when IBM z17 launched 😆 Let me look at this again once I am back. |
taronaeo
left a comment
There was a problem hiding this comment.
I think this change looks good for cross-building. I was taking a look at native POWER builds too and notice that -mcpu=power11 is missing from ggml/src/ggml-cpu/CMakeLists.txt.
I'm not too familiar with the differences between POWER10 and POWER11's milli/microcode, but this means that POWER11's intrinsic is locked at POWER10 at the moment, right?
Would you like to address it in this PR too, or is that not needed?
|
Hi @taronaeo Thank you pointing it out . From a core architecture perspective, there is no difference from P10 to P11 . Since MMA optimisations would remain the same for P10 and P11, we have used -mcpu=power10 for P11 as well. |
ggml-cpu: Use -mcpu=power10 for P10 and P11
|
@ggml-org/maintainers Another approval please. |
|
CI failures unrelated to PR. Merging. |
|
Thank you so much @taronaeo @max-krasnyansky for the review and merge process. |
…ort (ggml-org#24687) * ggml: Conditionally enable power11 backend based on compiler support Guard POWER11 backend creation behind a compiler flag check for -mcpu=power11. This avoids build failures on current GCC/Clang toolchains while preserving forward compatibility once POWER11 support becomes available. * Update CMakeLists.txt ggml-cpu: Use -mcpu=power10 for P10 and P11
…ort (ggml-org#24687) * ggml: Conditionally enable power11 backend based on compiler support Guard POWER11 backend creation behind a compiler flag check for -mcpu=power11. This avoids build failures on current GCC/Clang toolchains while preserving forward compatibility once POWER11 support becomes available. * Update CMakeLists.txt ggml-cpu: Use -mcpu=power10 for P10 and P11
…ort (ggml-org#24687) * ggml: Conditionally enable power11 backend based on compiler support Guard POWER11 backend creation behind a compiler flag check for -mcpu=power11. This avoids build failures on current GCC/Clang toolchains while preserving forward compatibility once POWER11 support becomes available. * Update CMakeLists.txt ggml-cpu: Use -mcpu=power10 for P10 and P11
Guard POWER11 backend creation behind a compiler flag check for -mcpu=power11. This avoids build failures on current GCC/Clang toolchains while preserving forward compatibility once POWER11 support becomes available.
Overview
Additional information
Requirements