REPTILE: Performant Tiling of Recurrences
Open Access
- 9 October 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (OOPSLA2) , 670-696
Abstract
We introduce REPTILE, a compiler that performs tiling optimizations for programs expressed as mathematical recurrence equations. REPTILE recursively decomposes a recurrence program into a set of unique tiles and then simplifies each into a different set of recurrences. Given declarative user specifications of recurrence equations, optimizations, and optional mappings of recurrence subexpressions to external libraries calls, REPTILE generates C code that composes compiler-generated loops with calls to external hand-optimized libraries. We show that for direct linear solvers expressible as recurrence equations, the generated C code matches and often exceed the performance of standard hand-optimized libraries. We evaluate REPTILE's generated C code against hand-optimized implementations of linear solvers in Intel MKL, as well as two non-solver recurrences from bioinformatics: Needleman-Wunsch and Smith-Waterman. When the user provides good tiling specifications, REPTILE achieves parity with MKL, achieving between 0.79--1.27x speedup for the LU decomposition, 0.97--1.21x speedup for the Cholesky decomposition, 1.61x--2.72x for lower triangular matrix inversion, 1.01--1.14x speedup for triangular solve with multiple right-hand sides, and 1.14--1.73x speedup over handwritten implementations of the bioinformatics recurrences.Keywords
Funding Information
- National Science Foundation (CCF-2216964)
This publication has 37 references indexed in Scilit:
- A High Performance Sparse Tensor Algebra Compiler in MLIR2021
- Tensor Algebra Compilation with Workspaces2019
- Communication-Avoiding Parallel Algorithms for Solving Triangular Systems of Linear Equations2017
- Intel Math Kernel Library2014
- Flexible Development of Dense Linear Algebra Algorithms on Massively Parallel Architectures with DPLASMA2011
- Numerical linear algebra on emerging architectures: The PLASMA and MAGMA projectsJournal of Physics: Conference Series, 2009
- ScaLAPACK: a scalable linear algebra library for distributed memory concurrent computers2003
- Dataflow analysis of array and scalar referencesInternational Journal of Parallel Programming, 1991
- The ijk forms of factorization methods II. Parallel systemsParallel Computing, 1988
- The ijk forms of factorization methods I. Vector computersParallel Computing, 1988