Skip to content
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

ggml: Add run-time detection of neon, i8mm and sve #9331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eddnjjn
Copy link
Contributor

@eddnjjn eddnjjn commented Sep 6, 2024

This patch adds run-time detection of the Arm instructions set features Arm® Neon™, i8mm and sve for Linux and Apple build targets. The run-time detection is enabled for aarch64 builds and done in ggml_init. The data is stored in a global struct instance to be later used by the ggml_cpu_has_* functions.

Adds run-time detection of the Arm instructions set features
neon, i8mm and sve for Linux and Apple build targets.
@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Sep 6, 2024
Comment on lines +3771 to 3773
#if defined(__aarch64__)
ggml_init_aarch64_features();
#endif
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity, this call should be within the is_first_call section above

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