Hello SME! Generating Fast Matrix Multiplication Kernels Using the Scalable Matrix Extension
Not on the map. Why?
Abstract (arXiv)
Modern central processing units (CPUs) feature single-instruction, multiple-data pipelines to accelerate compute-intensive floating-point and fixed-point workloads. Traditionally, these pipelines and corresponding instruction set architectures (ISAs) were designed for vector parallelism. In recent years, major hardware vendors have further increased the throughput of their CPUs by introducing matrix units with corresponding ISA extensions. The Scalable Matrix Extension (SME) has been announced for the Arm architecture in 2021 and Apple's M4 chip is the first to support SME. This paper presents an in-depth study of SME on M4. Our microbenchmarks determine the maximum floating-point and fixed-point throughput of M4's SME acceleration and study the achievable bandwidth for transfers to and from the matrix registers. Furthermore, we used the insights gained to design a just-in-time code generator for SME-based small matrix multiplications. The results presented show that M4's SME support is FP32-centric, with an achievable throughput of over 2.3 FP32 TFLOPS. To maximize read and write bandwidth, loading and storing to and from the matrix registers must be done in two steps. Our just-in-time generated small matrix multiplication kernels outperform the vendor-optimized BLAS implementation in almost all tested configurations.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Sep 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025The Cambrian Explosion of Mixed-Precision Matrix Multiplication for Quantized Deep Learning Inferencecited by 1
- 2025Using MLIR Transform to Design Sliced Convolution Algorithmcited by 0
- 2026LP-GEMM: Integrating Layout Propagation into GEMM Operationscited by 0
- 2026CUTEv2: Unified and Configurable Matrix Extension for Diverse CPU Architectures with Minimal Design Overheadcited by 0
- 2026SMEPilot: Characterizing and Optimizing LLM Inference with Scalable Matrix Extensionscited by 0
- 2026SMEPilot: Characterizing and Optimizing LLM Inference with Scalable Matrix Extensions15 Jun 2026
- 2026CUTEv2: Unified and Configurable Matrix Extension for Diverse CPU Architectures with Minimal Design Overhead13 Apr 2026
- 2026LP-GEMM: Integrating Layout Propagation into GEMM Operations6 Apr 2026
- 2025Using MLIR Transform to Design Sliced Convolution Algorithm22 Nov 2025
- 2025The Cambrian Explosion of Mixed-Precision Matrix Multiplication for Quantized Deep Learning Inference13 Jun 2025