Tackling the Matrix Multiplication Micro-kernel Generation with Exo

Adrián Castelló, Julian Bellavita, Grace Dinh, Yuka Ikarashi, Héctor Martínez
10/26/2023
11 citations
cs.MScs.CLcs.PF

Official code: adcastel/EXO_ukr_generator (1 star, C, last commit 2024-01-17).

Abstract

The optimization of the matrix multiplication (or GEMM) has been a need during the last decades. This operation is considered the flagship of current linear algebra libraries such as BLIS, OpenBLAS, or Intel OneAPI because of its widespread use in a large variety of scientific applications.

Show full abstract

The GEMM is usually implemented following the GotoBLAS philosophy, which tiles the GEMM operands and uses a series of nested loops for performance improvement. These approaches extract the maximum computational power of the architectures through small pieces of hardware-oriented, high-performance code called micro-kernel. However, this approach forces developers to generate, with a non-negligible effort, a dedicated micro-kernel for each new hardware. In this work, we present a step-by-step procedure for generating micro-kernels with the Exo compiler that performs close to (or even better than) manually developed microkernels written with intrinsic functions or assembly language. Our solution also improves the portability of the generated code, since a hardware target is fully specified by a concise library-based description of its instructions.

View on arXivView PDF

Code Implementations(1)

A generator for ukr with EXO

10C, PythonApr 21, 20232 years ago

Similar Papers

Cite this paper

@article{castell2023tackling,
  title  = {Tackling the Matrix Multiplication Micro-kernel Generation with Exo},
  author = {Adrián Castelló and Julian Bellavita and Grace Dinh and Yuka Ikarashi and Héctor Martínez},
  year   = {2023},
  eprint = {2310.17408},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.17408v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.17408.svg)](https://codeofpaper.com/paper/2310.17408)

Discussion