Repository navigation
perf(gemm): native float32 GEMM on s390x - #79
Merged
Merged
Conversation
gemmMicro4x16VXE is the float64 4x8 kernel at twice the lanes: sixteen four-lane accumulators, the B row in one VLM, each A value replicated with VLREPF, and VFMASB, which go-asmgen encodes because Go's assembler has no short-format vector float op. It needs the vector-enhancements facility 1, so it is gated on useVXE like the other float32 kernels. Without it, float32 products still widen to the float64 GEMM. IBM Z (LinuxONE, VXE), abbench 8 rounds, one core, against v0.28.0: -58/-54/-50% at 64²/256²/1024². Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tannevaled
force-pushed
the
perf/gemm32-s390x
branch
from
October 30, 2026 20:59
80f0795 to
bffa5cd
Compare
tannevaled
marked this pull request as ready for review
October 30, 2026 20:59
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.
Native float32 GEMM on s390x:
gemmMicro4x16VXE, the float64 4×8 kernel at twice the lanes. It replicates each A value withVLREPFand uses the z14 fused multiply-addVFMASB, which go-asmgen encodes. It is gated onuseVXE; without that facility, float32 products widen to the float64 GEMM as before.MatMul, IBM Z (LinuxONE, VXE), abbench 8 rounds, 1 coreSabotage check: shifting the A rows made only the qemu s390x lane fail, and the sabotage commit has been removed. On the real IBM Z the kernel suite (fence included,
useVXE = true) and the root suite pass.🤖 Generated with Claude Code