What is it about?

Matrix multiplication is one of the most common calculations in AI and signal processing on small, low-power devices such as wearables and sensors. In real programs, however, it is rarely written on its own: it is mixed in with other code, which makes it hard for compilers to use the hardware efficiently. We present Kernel-CGRA, a compiler that automatically spots matrix multiplications hidden inside larger programs and runs them on a hand-optimised kernel designed for coarse-grained reconfigurable arrays (CGRAs), a flexible and energy-efficient type of accelerator. The rest of the program is compiled as usual. Across a range of benchmarks, this made programs run up to 10.2 times faster than the state-of-the-art compilation approach.

Featured Image

Why is it important?

Edge devices for healthcare, autonomous driving and industrial automation must run machine learning under very tight energy and compute budgets. CGRAs are a promising answer, but their compilers have struggled with matrix multiplication, leaving a large gap between automatic and hand-tuned results. Our approach closes much of that gap without giving up generality: the compiler only rewrites code it can prove to be a matrix multiplication, so programs stay correct, while everything else goes through the regular compilation flow. This makes efficient CGRA programming accessible without writing hand-optimised code for every application.

Perspectives

Working on this paper taught me how much performance is lost when a compiler can't see the structure hidden inside real programs. It was rewarding to see an idea that started as a loop transformation end up making whole applications run several times faster on a CGRA. I hope it encourages others to look at their kernels through the same lens

María José Belda
Universidad Complutense de Madrid

Read the Original

This page is a summary of: Exposing Embedded Matrix Multiplication with polyhedral transformations for CGRA compilation, ACM Transactions on Architecture and Code Optimization, October 2026, ACM (Association for Computing Machinery),
DOI: 10.1145/3859886.
You can read the full text:

Read

Contributors

The following have contributed to this page