[HAL RVV] reuse atan | impl cart_to_polar | add perf test#27000
Merged
asmorkalov merged 2 commits intoopencv:4.xfrom Mar 13, 2025
Merged
[HAL RVV] reuse atan | impl cart_to_polar | add perf test#27000asmorkalov merged 2 commits intoopencv:4.xfrom
asmorkalov merged 2 commits intoopencv:4.xfrom
Conversation
c8b104c to
ea73f70
Compare
6 tasks
Contributor
Author
fengyuentau
reviewed
Mar 10, 2025
Member
|
My performance results (K1 vs RK3568): |
6 tasks
Contributor
Author
|
This patch can be benefit from #27015. I think we should do perf test after using |
Member
Thank you for the hint. I will redo performance testing once updated. |
Member
ea73f70 to
62f0dd4
Compare
Contributor
Author
|
UI enabled. Some explanation and the perf result is updated.
|
Member
|
Updated performance results (K1 vs RK3568): Nice 👍 |
fengyuentau
approved these changes
Mar 12, 2025
Member
|
@GenshinImpactStarts Please resolve conflicts. |
Co-authored-by: Liutong HAN <liutong2020@iscas.ac.cn>
Co-authored-by: Liutong HAN <liutong2020@iscas.ac.cn>
62f0dd4 to
b842ccd
Compare
asmorkalov
approved these changes
Mar 13, 2025
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.
Implement through the existing
cv_hal_cartToPolar32fandcv_hal_cartToPolar64finterfaces.Add
cartToPolarperformance tests.cv_hal_rvv::fast_atan is modified to make it more reusable because it's needed in cartToPolar.
UPDATE: UI enabled. Since the vec type of RVV can't be stored in struct. UI implementation of
v_atan_f32is modified. BothfastAtanandcartToPolarare affected so the test result foratanis also appended. I have tested the modified UI on RVV and AVX2 and no regressions appears.Perf test done on MUSE-PI. AVX2 test done on Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz.
Test result between enabled UI and HAL:
Test result before and after enabling UI on RVV:
Test result before and after modifying UI on AVX2:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.