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

Double throughput on systems which support AVX512 VPCLMULQDQ #3

Merged
merged 14 commits into from
Dec 27, 2024

Conversation

onethumb
Copy link

@onethumb onethumb commented Dec 12, 2024

By leveraging Rust's emerging support for AVX512 intrinsics, specifically VPCLMULQDQ, we can massively improve throughput for x86_64 processors which support them (Intel Ice Lake+ and AMD Zen4+).

Specifically, on an m7i.8xlarge EC2 instance (4th gen Xeon, aka Sapphire Rapids), throughput approximately doubles from ~26GiB/s to ~52GiB/s.

Since these are currently marked as unstable features in Rust, builds require using nightly and enabling the vpclmulqdq feature:

rustup toolchain install nightly
cargo +nightly build --features="vpclmulqdq" -r

This originated from feat: add 256bit vpclmulqdq support PR from the origin crc64fast project.

SchrodingerZhu and others added 9 commits November 4, 2022 16:27
Signed-off-by: Schrodinger ZHU Yifan <[email protected]>
…256bit-vpclmulqdq

Adding 256-bit VPCLMULQDQ support from
tikv#8
# Conflicts:
#	Cargo.toml
#	src/lib.rs
#	src/pclmulqdq/mod.rs
…256bit-vpclmulqdq

Adding 256-bit VPCLMULQDQ support from
tikv#8

# Conflicts:
#	Cargo.toml
# Conflicts:
#	README.md
#	src/pclmulqdq/mod.rs
#	src/pclmulqdq/x86/mod.rs
@landonxjames
Copy link

This looks awesome! Excited to test it inside the AWS SDK. Also inspiring since I've been looking at implementing some of these checksums using WASM SIMD.

@onethumb onethumb merged commit cc66833 into main Dec 27, 2024
1 check passed
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.

3 participants