Waypoint: Analytically Modeling GEMM for CPUs
High-performance General Matrix Multiplication (GEMM) implementations rely on breaking down GEMM into carefully selected tiles to achieve peak performance. We present Waypoint, a new analytical model to automatically identify the optimal tile size for a given hardware and input matrix shape. Waypoint estimates the achievable performance for a given tile choice by capturing all the architectural effects including interactions with memory hierarchy, instruction-level parallelism, and multi-threading. Using the estimates as a proxy, we search through the space of possible tile sizes to identify the one that maximizes performance. Additionally, Waypoint helps hardware designers estimate realistic performance on experimental hardware optimizations. We build a new GEMM library OPAM for CPUs that uses Waypoint to automatically break down GEMM and achieve performance that matches state-of-the-art GEMM libraries and helps accelerate LLM inference on CPUs achieving $1.36 - 1.98 \times$ speedups.
Authors
- Varun Agrawal (ORCID: https://orcid.org/0000-0001-9867-6663)
- Eashan Dash
- Prakash S. Raghavendra (ORCID: https://orcid.org/0000-0002-3874-7033)
- Sunanda Somwase
- Hemant Kumar Chandrakant Chandavar
- Srinidhi N
Publication Details
- Journal
- arXiv (Cornell University)
- Published
- 2026-10-26
- DOI
- https://doi.org/10.48550/arxiv.2610.34914
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint