Optimize the zgemm_tcopy_4_rvv function to be compatible with the situations where the vector lengths(vlens) are 128 and 256. #5030
+25
−111
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 zgemm_tcopy_4_rvv, when the vector length (vlen) is 128 and 256,
causes some cases in the cgemmt series to fail when running openblas_utest_ext for functional testing.
The optimized version can pass the functional tests with 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 two pieces of hardware, namely K230 [C908, vlen = 128] and K1 [C908, vlen = 256], compared with the original optimized version.
The performance data is shown as below:
Parameter setting: OPENBLAS_LOOPS = 10000.
1. K230 [C908, vlen = 128]:
Cases Original RVV / MFlops Optimized RVV / MFlops
cher2k.goto 4619.25 4753.04
cherk.goto 4117.78 4182.16
csyr2k.goto 4581.21 4701.76
csyrk.goto 4033.85 4126.95
2. K1 [C908, vlen = 256]:
Cases Original RVV / MFlops Optimized RVV / MFlops
cher2k.goto 6697.40 7298.92
cherk.goto 5701.16 6224.16
csyr2k.goto 6558.31 7195.55
csyrk.goto 5599.63 6136.10
In the above data, the bigger value is, the better performance is.