Add SVE2 optimizations for SynetQuantizedMergedConvolution Cdc/Cd/Dc - #856
Merged
Conversation
Implement SVE/SVE2 kernels for quantized merged convolution input GEMM, depthwise (any/3x3), output GEMM, and residual add, and wire them into Init, tests, VS2022 project files, and release 7.2.165 notes. Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
Pass bias/norm as individual svint32_t/svfloat32_t values instead of arrays or pointer arithmetic, which GNU C++ rejects for SVE types. Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
ermig1979
marked this pull request as ready for review
August 13, 2026 09:16
QuntizedTerm8i and residual add used Round (half away from zero), which disagrees with Base::NearByInt / NEON NearbyInt on ties and caused off-by-one errors such as 1x32x56x56-192x1x1-5x2-56x1x1. Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SVE/SVE2 kernels for quantized merged convolution on ARM/ARM64, covering
SynetQuantizedMergedConvolutionCdc,SynetQuantizedMergedConvolutionCd, andSynetQuantizedMergedConvolutionDc.Changes
Set4+Madd4), depthwise preprocess/any/3x3 (Madd2on packed int16 rows), output 1x1 GEMM, and residualAddInputToOutput.SimdSynetQuantizedMergedConvolutionInit(SIMD_SVE2_FUNCbefore NEON).Simd::Sve2::SynetQuantizedMergedConvolutionInitwith the public Init.Sve2.vcxproj/.filtersentries and release 7.2.165 notes indocs/2026.html.NearbyInt(svrintn+ convert, ties to even) to matchBase::NearByIntand NEONNearbyInt. The previousRound(half away from zero) caused off-by-one errors such as1x32x56x56-192x1x1-5x2-56x1x1.Based on
dev(including NEON quantized merged convolution). Vector-length agnostic (svcntw()asmiC).AArch64 cross-compile of the new SVE2 sources and the corresponding test translation unit succeeds with
-march=armv9-a+sve+sve2+i8mm+bf16. This environment is x86_64, so native SVE2Testwas not run. Please re-run./Test "-r=.." -fi=SynetQuantizedMergedConvolutionon ARM.