Skip to content

Add SVE2 optimization for HaarDetect32fi#471

Merged
ermig1979 merged 1 commit into
devfrom
cursor/sve2-haar-detect32fi-428d
Jun 18, 2026
Merged

Add SVE2 optimization for HaarDetect32fi#471
ermig1979 merged 1 commit into
devfrom
cursor/sve2-haar-detect32fi-428d

Conversation

@ermig1979

@ermig1979 ermig1979 commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add SVE2 implementation and dispatch for SimdDetectionHaarDetect32fi.
  • Extend detection auto-tests to cover the SVE2 DetectionHaarDetect32fi path.
  • Document the new optimization in release 7.2.163 notes.

Testing

  • cmake ./prj/cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DSIMD_TOOLCHAIN="g++" -DSIMD_TARGET="" -DSIMD_AVX512VNNI=ON -DSIMD_AMXBF16=ON -DSIMD_TEST_FLAGS="-march=native" -DSIMD_SHARED=ON && cmake --build build --parallel$(nproc)
  • export LD_LIBRARY_PATH="$(pwd)/build:$LD_LIBRARY_PATH" && ./build/Test "-r=." -fi=DetectionHaarDetect32fi -tt=1 -ts=1
  • aarch64-linux-gnu-g++ -march=armv9-a+sve2 -std=c++11 -fsyntax-only -fmax-errors=5 -I/workspace/src /workspace/src/Simd/SimdSve2Detection.cpp
  • aarch64-linux-gnu-g++ -march=armv9-a+sve2 -std=c++11 -fsyntax-only -fmax-errors=5 -I/workspace/src /workspace/src/Simd/SimdLib.cpp
Open in Web Open in Cursor 

Co-authored-by: Ihar Yermalayeu <ermig1979@gmail.com>
@ermig1979 ermig1979 marked this pull request as ready for review June 18, 2026 09:56
@ermig1979 ermig1979 merged commit 163ecce into dev Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants