Add and use vectorized packing in ZVL128B and ZVL256B for RISCV#5422
Merged
martin-frbg merged 2 commits intoOpenMathLib:developfrom Aug 16, 2025
Merged
Conversation
…er than generic scalar functions.
Contributor
Author
|
Not quite sure why the one test is timing out but I don't think it's related to these changes. |
Contributor
Author
|
Investigating performance for DGEMM. |
Contributor
Author
|
Only use for SGEMM, since DGEMM shows a slowdown. Overall, I'm seeing a 5-9% improvement on SGEMM. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add and use vectorized packing in ZVL128B and ZVL256B for RISCV. Up to 3x faster than generic scalar functions
Example: Size = 127 x 127
gemm_ncopy_16_rvv - 1.6x faster
gemm_tcopy_16_rvv - 1.5x faster
gemm_ncopy_8_rvv - 1.4x faster
gemm_tcopy_8_rvv - 1.4x faster
gemm_ncopy_4_rvv - 1.1x faster
gemm_tcopy_4_rvv - 1.2x faster