Skip to content

Add SVE2 optimization for DetectionLbpDetect16ip#474

Merged
ermig1979 merged 2 commits into
devfrom
cursor/sve2-lbp-detect16ip-8d84
Jun 18, 2026
Merged

Add SVE2 optimization for DetectionLbpDetect16ip#474
ermig1979 merged 2 commits into
devfrom
cursor/sve2-lbp-detect16ip-8d84

Conversation

@ermig1979

@ermig1979 ermig1979 commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add SVE2 implementation and dispatcher wiring for SimdDetectionLbpDetect16ip.
  • Preserve 16-bit integral-sum wraparound in the SVE2 LBP comparisons to match Base/x86/NEON semantics.
  • Add SVE2 auto-test coverage for DetectionLbpDetect16ip.
  • Update release notes for version 7.2.163.

Testing

  • git diff --check
  • aarch64-linux-gnu-g++ -std=c++11 -O2 -fPIC -I./src -march=armv9-a+sve2 -msve-vector-bits=scalable -c src/Simd/SimdSve2Detection.cpp -o /tmp/SimdSve2Detection.o
  • aarch64-linux-gnu-g++ -std=c++11 -O2 -fPIC -I./src -march=armv9-a+sve2 -msve-vector-bits=scalable -c src/Simd/SimdLib.cpp -o /tmp/SimdLib.o
  • aarch64-linux-gnu-g++ -std=c++11 -O2 -I./src -I./src/Test -march=armv9-a+sve2 -msve-vector-bits=scalable -c src/Test/TestDetection.cpp -o /tmp/TestDetection.o
  • 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" && cd build && ./Test "-r=.." -fi=DetectionLbpDetect16ip -tt=1 -ts=1
Open in Web Open in Cursor 

cursoragent and others added 2 commits June 18, 2026 10:42
Co-authored-by: Ihar Yermalayeu <ermig1979@gmail.com>
Co-authored-by: Ihar Yermalayeu <ermig1979@gmail.com>
@ermig1979 ermig1979 marked this pull request as ready for review June 18, 2026 11:12
@ermig1979 ermig1979 merged commit 82ceb6b 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