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

Refactored ML-KEM SIMD scaffolding #233

Merged
merged 36 commits into from
Apr 28, 2024
Merged

Conversation

xvzcf
Copy link
Contributor

@xvzcf xvzcf commented Apr 23, 2024

  • Broke out SIMD-specific code into a separate simd directory
  • Created a trait called Operations to provide a unified API over the different SIMD bit-widths and architectures
  • Removed the *_int_vec_* prefixes, suffixes, and affixes and renamed constants

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.

We should update some names but we can do that later. The F* is the only real issue we should fix.

libcrux-ml-kem/src/simd/fallback.rs Outdated Show resolved Hide resolved
libcrux-ml-kem/src/simd/fallback.rs Outdated Show resolved Hide resolved
libcrux-ml-kem/src/simd/mod.rs Outdated Show resolved Hide resolved
libcrux-ml-kem/src/lib.rs Show resolved Hide resolved
@franziskuskiefer franziskuskiefer linked an issue Apr 24, 2024 that may be closed by this pull request
@franziskuskiefer franziskuskiefer linked an issue Apr 24, 2024 that may be closed by this pull request
@franziskuskiefer franziskuskiefer marked this pull request as draft April 24, 2024 10:02
@franziskuskiefer
Copy link
Member

This will need more hax changes. We will work on dev for now and do this refactoring later.

@franziskuskiefer franziskuskiefer linked an issue Apr 24, 2024 that may be closed by this pull request
Copy link
Contributor

@karthikbhargavan karthikbhargavan left a comment

Choose a reason for hiding this comment

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

A lot of work in this PR, future PRs should be much smaller.

@franziskuskiefer franziskuskiefer marked this pull request as ready for review April 28, 2024 18:17
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.

There's a lot here that needs cleanup. But we'll do that in follow-ups.
I only reverted the sha3 changes. If that's something you want @karthikbhargavan, do them separately.

libcrux-ml-kem/src/simd/mod.rs Show resolved Hide resolved
sys/hacl/c/src/Hacl_Hash_SHA3_Scalar.c Outdated Show resolved Hide resolved
@franziskuskiefer franziskuskiefer merged commit 2eae32e into dev Apr 28, 2024
14 checks passed
@franziskuskiefer franziskuskiefer deleted the goutam/ml-kem-simd-1 branch April 28, 2024 18:44
@karthikbhargavan
Copy link
Contributor

karthikbhargavan commented Apr 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
3 participants