-
Notifications
You must be signed in to change notification settings - Fork 138
cpufeatures: add support for detecting AVX-512 #862
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
Conversation
Adds support for detecting the following features: - `avx512f` - `avx512dq` - `avx512ifma` - `avx512pf` - `avx512er` - `avx512cd` - `avx512bw` - `avx512vl` CPUID bitflags obtained from this table: https://en.wikichip.org/wiki/x86/avx-512#Detection Closes #815
This is missing I'm curious if that would be expressed as Edit: guess there are several more, actually:
|
My CPU supports this flag (along with |
@brxken128 you can make a small test script to see if it's detected |
I temporarily altered the Edit: I also just attempted to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but it could be worth to add a note that the AVX-512 feature names may be renamed to follow potential changes in std
.
@newpavlov hmm, I'm not sure where a good place to add those is? Possibly the comment above? (which contains a link that 404s, FYI) Will go ahead and merge this for now and leave a note about the other AVX-512 features, and maybe see about updating that comment separately and including a new link to the Intel reference guide. |
@tarcieri |
Cool, opened a documentation PR: #866 |
Adds support for detecting the following features:
avx512f
avx512dq
avx512ifma
avx512pf
avx512er
avx512cd
avx512bw
avx512vl
CPUID bitflags obtained from this table:
https://en.wikichip.org/wiki/x86/avx-512#Detection
Closes #815