Hello SME! Generating Fast Matrix Multiplication Kernels Using the Scalable Matrix Extension
Authors:
- 17 November 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1443-1454
Abstract
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.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Realizing the AMD Exascale Heterogeneous Processor Vision : Industry Product2024
- Frontier: Exploring Exascale2023
- An Initial Evaluation of Arm’s Scalable Matrix Extension2022
- Meteor Lake and Arrow Lake Intel Next-Gen 3D Client Architecture Platform with Foveros2022
- Sapphire Rapids: The Next-Generation Intel Xeon Scalable Processor2022
- IBM's POWER10 ProcessorIEEE Micro, 2021
- Scaling the Summit: Deploying the World’s Fastest Supercomputer2019
- MilkyWay-2 supercomputer: system and applicationFrontiers of Computer Science, 2014
- Titan - Early experience with the Titan system at Oak Ridge National Laboratory2012
- Entering the petaflop era: The architecture and performance of Roadrunner2008