Improve SVE2 optimizations of Gemm32fNT - #827
Merged
Merged
Conversation
Rewrite Gemm32fNT microkernels with explicit NEON/AVX512-style code, unpredicated svmla_f32_x in the main loops, dual accumulators where register pressure allows, and a correct F-sized remainder before the masked tail. Document the change under release 7.2.165. Co-authored-by: Ihar Yermalayeu <ermig1979@gmail.com>
ermig1979
marked this pull request as ready for review
August 6, 2026 09:55
This was referenced Aug 6, 2026
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.
Summary
Improves ARM SVE/SVE2 optimizations of
SimdGemm32fNTinSimdSve2Gemm32fNT.cppand documents the change under release 7.2.165.Changes
SIMD_SVE2_GEMM_*macros; expand microkernels to explicit code matching the NEON/AVX-512BW style.svmla_f32_xin full-vector body loops instead of always-predicatedsvmla_f32_m.F-wide chunk after the DF loop before the masked tail (previously a single masked step could drop lanes when remainingKwas in(F, 2F)).Add4ExtractedSumshelper for 4-column kernels.docs/2026.html(release 7.2.165 Algorithms → Improving).Validation
./Test "-r=.." -fi=Gemm32fNT -tt=1 -ts=1— passed.-DSIMD_SVE2=ON:Simd::Sve2::Gemm32fNTlinked inlibSimd.so.-cpu max,sve=on, VL=512):Gemm32fNTAutoTest passed for Base/NEON/SVE2, including odd-Kshapes that exercise the remainder path.