Skip to content

Add C++ wrapper Simd::SynetMergedConvolution16b - #926

Merged
ermig1979 merged 2 commits into
devfrom
cursor/synet-merged-convolution16b-wrapper-dcca
Aug 27, 2026
Merged

Add C++ wrapper Simd::SynetMergedConvolution16b#926
ermig1979 merged 2 commits into
devfrom
cursor/synet-merged-convolution16b-wrapper-dcca

Conversation

@ermig1979

@ermig1979 ermig1979 commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Adds C++ wrapper Simd::SynetMergedConvolution16b in src/Simd/SimdSynet.hpp, analogous to Synet::MergedConvolution16b from the Synet dev branch (src/Synet/Utils/MergedConvolution.h).

The wrapper covers the existing C API:

  • SimdSynetMergedConvolution16bInit
  • SimdSynetMergedConvolution16bExternalBufferSize
  • SimdSynetMergedConvolution16bInternalBufferSize
  • SimdSynetMergedConvolution16bInfo
  • SimdSynetMergedConvolution16bSetParams
  • SimdSynetMergedConvolution16bForward

Changes

  • New Simd::SynetMergedConvolution16b class with Doxygen description and usage example
  • TestSynetMergedConvolution16b() in src/Test/TestCheckCpp.cpp compares wrapper output with the C API
  • Release notes for 7.2.165 in docs/2026.html
  • Doxygen cpp_synet group and C API notes updated
  • TestCheckCpp.cpp includes Simd/SimdDefs.h so SIMD_SYNET_ENABLE tests actually compile
  • SimdSynet.hpp is already listed in prj/vs2022/Simd.vcxproj and prj/vs2022/Simd.vcxproj.filters on dev

Test plan

  • CMake Release shared build with g++ succeeded
  • ./Test "-r=.." -cc=1 -fi=Sobel -tt=1 -ts=1 ran CheckCpp() including TestSynetMergedConvolution16b() with no wrapper mismatches
  • Standalone wrapper vs C API check: Enable=true, InternalBufferSize 17896/17896, ExternalBufferSize 16920/16920, Info AmxBf16-0, 512 outputs with 0 mismatches

Standalone wrapper verification log
CheckCpp and Sobel smoke log

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 27, 2026 07:28
Wrap SimdSynetMergedConvolution16b C API in Simd::SynetMergedConvolution16b
with Doxygen docs and a CheckCpp test against the C functions.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
Include SimdDefs.h so SIMD_SYNET_ENABLE tests compile, and pass a
valid params array because the 16b C API indexes it even for Identity.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
@ermig1979
ermig1979 marked this pull request as ready for review August 27, 2026 07:40
@ermig1979
ermig1979 merged commit 58a5abe into dev Aug 27, 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