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

Introduce AVX2 target_feature boundary in x4 sampling #719

Merged
merged 26 commits into from
Dec 19, 2024

Conversation

jschneider-bensch
Copy link
Collaborator

The PR takes @franziskuskiefer's work on introducing another target feature boundary in x4 sampling for ring elements.

I've introduced a new enum that selects which sampler to use and allows switching on the target feature for AVX2.

Also, I tried to write SampleArgs a bit more generically, in case we want to do the same for error sampling.

franziskuskiefer and others added 3 commits December 10, 2024 09:13
This allows us to have a `target_feature` boundary here as well.
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

thanks, generally lgtm. I'll do another full pass later.
Can you update the C and F* extraction to make sure we don't do anything we shouldn't?

libcrux-ml-dsa/src/ml_dsa_generic.rs Outdated Show resolved Hide resolved
libcrux-ml-dsa/src/sample.rs Outdated Show resolved Hide resolved
libcrux-ml-dsa/src/sample.rs Outdated Show resolved Hide resolved
Base automatically changed from franziskus/mldsa-c2 to main December 16, 2024 18:48
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Thanks!
Only a few nits, then let's get this in.

libcrux-ml-dsa/src/sample.rs Outdated Show resolved Hide resolved
libcrux-ml-dsa/src/samplex4.rs Outdated Show resolved Hide resolved
libcrux-ml-dsa/src/sample.rs Show resolved Hide resolved
- Comment location
- Remove `sample_four_ring_elements_into!` macro
@jschneider-bensch jschneider-bensch added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit d45d29b Dec 19, 2024
52 checks passed
@jschneider-bensch jschneider-bensch deleted the franziskus/mldsa-samplev3 branch December 19, 2024 09:10
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.

2 participants