Skip to content

cmake: Factor out CPU architecture detection #13883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025

Conversation

ckastner
Copy link
Contributor

@ckastner ckastner commented May 29, 2025

The architecture checks performed are useful for parts other than ggml_add_cpu_backend_variant_impl.

I intend to use this in a follow-up improvement for GGML_CPU_ALL_VARIANTS. For example, setting that now builds all x86 variants even on non-x86, so it should be guarded by an architecture check.

ckastner added 2 commits May 29, 2025 10:09
The tests and results match exactly those of ggml/src/CMakeLists.txt
@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label May 29, 2025
@ggerganov ggerganov added the merge ready indicates that this may be ready to merge soon and is just holding out in case of objections label May 29, 2025
@ggerganov ggerganov requested a review from slaren May 29, 2025 09:25
@slaren slaren merged commit 21fcc21 into ggml-org:master May 29, 2025
46 checks passed
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 merge ready indicates that this may be ready to merge soon and is just holding out in case of objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants