-
Notifications
You must be signed in to change notification settings - Fork 273
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
re-stabilize the AVX-512 features that were stabilized in Rust 1.27.0 #842
Conversation
rust-lang#739 added per-feature stabilization of runtime CPU feature detection. In so doing, it de-stabilized some detection features that had been stable since Rust 1.27.0, breaking some published crates (on nightly). This commit re-stabilizes the subset of AVX-512 detection features that were included in 1.27.0 (that is, the pre-Ice-Lake subset). Other instruction sets (MMX in particular) remain de-stabilized, pending a decision about whether should ever stabilize them. See rust-lang/rust#68905.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @gnzlbg (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
(CI failure appears unrelated.) |
Could you add a comment saying that the AVX512 intrinsics are not stable yet, only the feature check. And that these were stabilized to avoid breaking code that was already relying on it. Add a reference to rust-lang/rust#68905. This doesn't have to be a doc comment, just a small note in the code for the next person who stumbles across this code wondering why these are stable while the intrinsics aren't. |
32fcab5
to
d9b91b4
Compare
In light of rust-lang/rust#68905 (comment), should we expand this PR to stabilize the entire set of AVX-512 features, and also mmx/sse4a/tbm? I don't know whether detection for those things actually works. |
👍 |
Also "cmpxchg16b" and "rtm"? I haven't seen those discussed yet. If someone who knows what they're doing would like to land this PR, and then make follow-up changes on top of it, that might be a better option :) I don't have any expertise in this area, and I'm worried about breaking things. |
This PR is now up to speed with rust-lang/rust#68905 (comment) and is potentially ready to merge. I've sanity checked it locally by building the |
Update stdarch submodule This only includes one commit: - rust-lang/stdarch@abe96ca (rust-lang/stdarch#842) Fixes rust-lang#68905
#739 added per-feature
stabilization of runtime CPU feature detection. In so doing, it
de-stabilized some detection features that had been stable since Rust
1.27.0, breaking some published crates (on nightly). This commit
re-stabilizes the subset of AVX-512 detection features that were
included in 1.27.0 (that is, the pre-Ice-Lake subset). Other instruction
sets (MMX in particular) remain de-stabilized, pending a decision about
whether should ever stabilize them.
See rust-lang/rust#68905.