Skip to content

hal::norm update - #13317

Merged
alalek merged 4 commits into
opencv:3.4from
terfendail:norm_wintr
Nov 29, 2018
Merged

alalek merged 4 commits into
opencv:3.4from
terfendail:norm_wintr

Conversation

@terfendail

@terfendail terfendail commented Nov 28, 2018 •

Copy link
Copy Markdown
Contributor

This pullrequest changes

norm implementation updated to use wide universal intrinsics

force_builders=Linux AVX2,Custom
docker_image:Custom=powerpc64le

@terfendail

Copy link
Copy Markdown
Contributor Author
Performance for SSE2 baseline
Performance test Reference time PR time Speedup
hal_normL1_f32::test_len::300000 0.109 0.105 1.04
hal_normL1_f32::test_len::2000000 0.805 0.887 0.91
hal_normL1_u8::test_len::300000 0.014 0.018 0.79
hal_normL1_u8::test_len::2000000 0.183 0.198 0.93
hal_normL2Sqr::test_len::300000 0.091 0.098 0.93
hal_normL2Sqr::test_len::2000000 0.768 0.827 0.93
Performance for SSE4_2 baseline
Performance test Reference time PR time Speedup
hal_normL1_f32::test_len::300000 0.124 0.151 0.82
hal_normL1_f32::test_len::2000000 0.794 0.899 0.88
hal_normL1_u8::test_len::300000 0.032 0.016 1.96
hal_normL1_u8::test_len::2000000 0.207 0.203 1.02
hal_normL2Sqr::test_len::300000 0.088 0.096 0.92
hal_normL2Sqr::test_len::2000000 0.759 0.851 0.89
Performance for AVX2 baseline
Performance test Reference time PR time Speedup
hal_normL1_f32::test_len::300000 0.109 0.103 1.06
hal_normL1_f32::test_len::2000000 0.817 0.889 0.92
hal_normL1_u8::test_len::300000 0.013 0.012 1.11
hal_normL1_u8::test_len::2000000 0.184 0.195 0.94
hal_normL2Sqr::test_len::300000 0.087 0.096 0.91
hal_normL2Sqr::test_len::2000000 0.764 0.834 0.92

@seiko2plus

Copy link
Copy Markdown
Contributor

please could you combine this patch c6c1f0b, it should fix build failure and improve performance on ppc64le?

@alalek
alalek merged commit 00c9ab8 into opencv:3.4 Nov 29, 2018
@terfendail
terfendail deleted the norm_wintr branch November 29, 2018 18:02
@alalek alalek mentioned this pull request Dec 3, 2018
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* Added performance tests for hal::norm functions

* Added sum of absolute differences intrinsic

* norm implementation updated to use wide universal intrinsics

* improve and fix v_reduce_sad on VSX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants