Rearranged the rotm kernel to adapt to the architecture. #5053
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.
Hi, martin-frbg:
In accordance with the suggestion put forward in PR #5038, we rearranged the rotm kernel to ensure its compatibility with the architecture. Additionally, we developed relevant test cases for conducting functional and performance verifications on K230 and K1 platforms.
The latest performance data are shown as below:
Parameter setting: OPENBLAS_LOOPS = 10000.
K230 [C908, vlen = 128]@1.6GHz:
| Cases | Scalar / MFlops | Optimized RVV / MFlops |
| srotm.goto | 872.52 | 1545.43 |
| drotm.goto | 797.53 | 1410.64 |
K1 [C908, vlen = 256]@1.6GHz:
| Cases | Scalar / MFlops | Optimized RVV / MFlops |
| srotm.goto | 896.42 | 1512.47 |
| drotm.goto | 819.14 | 1576.13 |
In the above data, the bigger value is, the better performance is.