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

re-stabilize the AVX-512 features that were stabilized in Rust 1.27.0 #842

Merged
merged 3 commits into from
Mar 19, 2020

Conversation

oconnor663
Copy link
Contributor

#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.

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.
@rust-highfive
Copy link

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.

@oconnor663
Copy link
Contributor Author

(CI failure appears unrelated.)

@Amanieu
Copy link
Member

Amanieu commented Feb 27, 2020

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.

@oconnor663
Copy link
Contributor Author

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.

@Amanieu
Copy link
Member

Amanieu commented Feb 28, 2020

cc @joshtriplett

@joshtriplett
Copy link
Member

👍

@oconnor663
Copy link
Contributor Author

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.

@oconnor663
Copy link
Contributor Author

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 blake3 crate with it, using the nightly toolchain.

@Amanieu Amanieu merged commit abe96ca into rust-lang:master Mar 19, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants