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

ML-DSA: AVX2 target feature #642

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jschneider-bensch
Copy link
Collaborator

This PR performs the same kind of restructuring to ML-DSA as #636 does to ML-KEM, i.e. once we know we're running on an AVX2 machine, manually enable AVX2 specific optimizations using #[target_feature(enable = "avx2")] and then inline most functions that are further down in the call-tree.
Doing this gets us really close to compiling the whole crate using RUSTFLAGS="-C target-feature=+avx2" in terms of performance.
It does mean even longer build times and probably even larger binaries, though.

Base automatically changed from jonas/ml-kem-target-feature to main October 21, 2024 21:19
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.

1 participant