Increase SVE2 QuantizedMergedConvolution GEMM unroll M from 5 to 12 - #857
Merged
Merged
Conversation
SVE has 32 vector registers, so the input and output 2xM kernels can keep 12 spatial rows (24 accumulators plus weights/src) instead of 5. Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
ermig1979
marked this pull request as ready for review
August 13, 2026 10:29
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.
Raise the SVE2 input/output 1x1 GEMM microkernel unroll
Mfrom 5 to 12 forSynetQuantizedMergedConvolutionCdc,SynetQuantizedMergedConvolutionCd, andSynetQuantizedMergedConvolutionDc.SVE provides 32 vector registers (NEON has 16), so the previous
M=5cap left registers unused. The 2-wide (dstC > F) kernel now keeps 12 spatial rows: 24 accumulators plus source/weight vectors, which fits in the SVE register file.Changes
SimdSve2SynetQuantizedMergedConvolutionInput.cpp:QuantizedMergedConvolutionInput_2xMsupportsM=1..12; main tile sizen = 12.SimdSve2SynetQuantizedMergedConvolutionOutput.cpp:QuantizedMergedConvolutionOutputConvolution_2xMsupportsM=1..12; main tile sizen = 12.offs0/offs6reuse ofsrc0..src5, hexMindices0x0..0xC).Based on
dev. Depthwise kernels are unchanged.Verification
AArch64 cross-compile of the SVE2 input/output/depthwise/init sources and
TestSynetQuantizedMergedConvolution.cppsucceeds 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.