-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Provide SSSE3, AVX2, and AVX512 optimized Reed-Solomon functions #2828
Conversation
ba79450
to
66aa3a6
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2828 +/- ##
=========================================
+ Coverage 8.99% 9.04% +0.05%
=========================================
Files 95 96 +1
Lines 17312 17437 +125
Branches 8236 8276 +40
=========================================
+ Hits 1557 1578 +21
- Misses 12890 12968 +78
- Partials 2865 2891 +26
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Hi, I did some research and this ticket helps optimize network encoding and transmission latency? |
5d1a939
to
005ef9c
Compare
005ef9c
to
a0d6f26
Compare
Nice work on the runtime detection. There are better ways to implement axpy in AVX512 with GFNI but I have not done much error correcting work lately. I'm eager to revisit it soon as there's many advancements I'd like to read up on in greater detail. Would you happen to have any metrics around shard counts ? Eg. A histogram of data and repair shards counts. |
…ardByte#2828) * Provide SSSE3, AVX2, and AVX512 optimized Reed-Solomon functions * Update nanors to fix AVX-512 memory corruption
Description
I spun this out of #2803 when it became evident that the simple solution of just adding
-mssse3
wouldn't work.This implementation uses GCC support for function targets to compile the Reed-Solomon code multiple times for SSSE3, AVX2, AVX512, and the default ISA flags. It provides a faster implementation than just hardcoding
-mssse3
while also not breaking non-x86 architectures or older x86 CPUs without SSSE3. It's definitely more complex than a compiler flag, but I think the performance gain is worth it and the complexity is pretty compartmentalized torswrapper.h/c
.On my Ryzen 5950X, AVX2 is about 2x faster than SSSE3 which is about 4x faster than the C variant.
Screenshot
Issues Fixed or Closed
Fixes #2543
Type of Change
.github/...
)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.