-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add RVV optimizations for SIMD-based calculations in ScalarQuantizer.cpp #4503
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
base: main
Are you sure you want to change the base?
Conversation
Hi @vsvnakers! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Signed-off-by: lyd1992 <[email protected]> Signed-off-by: vsvnakers <[email protected]>
I hope you’re all doing well! I wanted to kindly follow up on my PR (#4503), which has been open for about a week. If there are any issues, missing details, or areas that could be improved, please feel free to let me know — I’m more than happy to make adjustments. |
@vsvnakers my comments are the following
overall, the change looks good |
Thanks @alexanderguzhva for taking a look Sorry @vsvnakers , it fell through the cracks during change in oncall who reviews issues. for context, we are working on a large refactor of the library to allow easier maintenance of SIMD code. @subhadeepkaran do you want to see how compatible this one is? |
Signed-off-by: lyd1992 <[email protected]> Signed-off-by: vsvnakers <[email protected]>
Hi @alexanderguzhva @mnorris11, thanks a lot for the detailed feedback 🙏 |
@vsvnakers the code looks good |
@vsvnakers , thanks for this contribution! After the large SIMD refactor, we can start reviewing it. ETA this month. @subhadeepkaran to check |
Hi! AFAICS, the diff is still mainly formatting comments. Please use the clang formatter to make it readable. Thanks! |
Signed-off-by: lyd1992 <[email protected]> Signed-off-by: vsvnakers <[email protected]>
Signed-off-by: lyd1992 <[email protected]> Signed-off-by: vsvnakers <[email protected]>
Hi @mdouze, I reformatted the file using clang-format as recommended. |
@vsvnakers, thanks a lot, the PR is much more readable now. |
We have added the RVV implementation code for RISCV, which is benchmarked against NEON, in scalarquantizer.cpp for performance testing. The decode_8_components of CPU and RVV were tested and scored on the RISCV board, and the implementation of RVV showed significant performance improvement.
One of the RVV tests regarding decode_8_components
Test Principle:
This program compares the execution time of Scalar decoding and RVV Vectorized decoding to verify the performance improvements brought by RVV optimization.
Test Procedure:
code
.Output: