Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Enabling Efficient Sparse Computations using Linear Algebra Aware Compilers

Technical Report ·
DOI:https://doi.org/10.2172/3013883· OSTI ID:3013883
This project developed the LAPIS compiler framework, built on the Multilevel Intermediate Representation (MLIR), to optimize sparse linear algebra operations and support performance portability across diverse architectures. The main innovation of LAPIS is the Kokkos dialect, which allows for lowering codes from a high productivity language to different architectures in an elegant way. The dialect also allows the conversion of lower-level MLIR code to C++ Kokkos code, facilitating the integration of scientific machine learning (SciML) models into applications. To extend LAPIS for distributed memory architectures, a new partition dialect was created to manage the distribution of sparse tensors and express communication patterns for sparse linear algebra operations. This dialect also supports the distributed execution of operators and includes algorithmic optimizations to minimize communication to improve performance. The project also demonstrates that MLIR can enable effective linear algebra-level optimizations, improving performance on different GPUs for both sparse and dense linear algebra kernels. Key applications of LAPIS include sparse linear algebra and graph kernels, TenSQL, a relational database management solution built on GraphBLAS, and the development of subgraph isomorphism and monomorphism kernels, showcasing performance portability. In summary, the LAPIS framework supports productivity, performance, portability, and distributed memory execution, while also enabling linear algebra-level optimizations that are challenging in traditional programming languages, with successful applications ranging from simple sparse linear algebra to complex graph kernels.
Research Organization:
Sandia National Laboratories (SNL-NM), Albuquerque, NM (United States)
Sponsoring Organization:
USDOE National Nuclear Security Administration (NNSA); USDOE Laboratory Directed Research and Development (LDRD) Program
DOE Contract Number:
NA0003525
OSTI ID:
3013883
Report Number(s):
SAND--2025-11870R; 1789932
Country of Publication:
United States
Language:
English

Similar Records

A High Performance Sparse Tensor Algebra Compiler in MLIR
Conference · Sun Dec 19 23:00:00 EST 2021 · OSTI ID:1855960

Automatic Code Generation for High-Performance Graph Algorithms
Conference · Tue Dec 26 23:00:00 EST 2023 · OSTI ID:2376153

An implementation of SISAL for distributed-memory architectures
Thesis/Dissertation · Thu Jun 01 00:00:00 EDT 1995 · OSTI ID:176572

Related Subjects