Optimize the gemm_tcopy_8_rvv to be compatible with the vlens 128 and 256. #5074
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.
The implementation of the original gemm_tcopy_8_rvv, when the vector length (vlen) is 128 and 256,
causes some sgemmt/dgemmt series cases failure when running openblas_utest_ext.
The optimized version can pass the functional tests with the various vector lengths such as 128, 256, 512, and 1024.
Furthermore, for the relevant cases in the benchmark, the further optimized version has better performance on the K230 [C908, vlen = 128] and K1 [C908, vlen = 256], compared with the scalar and original optimized versions.
The performance data are shown as below:
Parameter setting: OPENBLAS_LOOPS = 10000.
1. K230 [C908, vlen = 128]:
2. K1 [C908, vlen = 256]:
In the above data, the bigger value is, the better performance is.