Skip to content

Add SVE2 BgraToBgr optimization - #393

Merged
ermig1979 merged 1 commit into
devfrom
cursor/sve2-bgra-to-bgr-5900
Jun 10, 2026
Merged

Add SVE2 BgraToBgr optimization#393
ermig1979 merged 1 commit into
devfrom
cursor/sve2-bgra-to-bgr-5900

Conversation

@ermig1979

@ermig1979 ermig1979 commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add SVE2 implementation of BgraToBgr and dispatch it from SimdBgraToBgr.
  • Extend BgraToBgrAutoTest to cover the SVE2 implementation.
  • Add the new source file to the VS2022 SVE2 project and document the release note.

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=BgraToBgr -tt=1 -ts=1
  • aarch64-linux-gnu-g++ -std=c++17 -O2 -march=armv8-a+sve2 -I src -c src/Simd/SimdSve2BgraToBgr.cpp -o /tmp/SimdSve2BgraToBgr.o
  • qemu-aarch64 -cpu max ./build/sve2_bgra_to_bgr_smoke
  • qemu-aarch64 -cpu max,sve-max-vq=1 ./build/sve2_bgra_to_bgr_smoke && qemu-aarch64 -cpu max,sve-max-vq=4 ./build/sve2_bgra_to_bgr_smoke
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 10, 2026 11:42
@ermig1979
ermig1979 merged commit 2cfebd5 into dev Jun 10, 2026
1 check passed
@ermig1979
ermig1979 deleted the cursor/sve2-bgra-to-bgr-5900 branch July 1, 2026 12:06
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