• Home
  • Search
  • Compilation of sparse array programming models
  • Cite Icon22
  • https://doi.org/10.1145/3485505Copy DOI Icon

Compilation of sparse array programming models

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

This paper shows how to compile sparse array programming languages. A sparse array programming language is an array programming language that supports element-wise application, reduction, and broadcasting of arbitrary functions over dense and sparse arrays with any fill value. Such a language has great expressive power and can express sparse and dense linear and tensor algebra, functions over images, exclusion and inclusion filters, and even graph algorithms. Our compiler strategy generalizes prior work in the literature on sparse tensor algebra compilation to support any function applied to sparse arrays, instead of only addition and multiplication. To achieve this, we generalize the notion of sparse iteration spaces beyond intersections and unions. These iteration spaces are automatically derived by considering how algebraic properties annotated onto functions interact with the fill values of the arrays. We then show how to compile these iteration spaces to efficient code. When compared with two widely-used Python sparse array packages, our evaluation shows that we generate built-in sparse array library features with a performance of 1.4× to 53.7× when measured against PyData/Sparse for user-defined functions and between 0.98× and 5.53× when measured against SciPy/Sparse for sparse array slicing. Our technique outperforms PyData/Sparse by 6.58× to 70.3×, and (where applicable) performs between 0.96× and 28.9× that of a dense NumPy implementation, on end-to-end sparse array applications. We also implement graph linear algebra kernels in our system with a performance of between 0.56× and 3.50× compared to that of the hand-optimized SuiteSparse:GraphBLAS library.

Loading PDF

Similar Papers
  • Research Article
  • Citations12

A Survey of Accelerating Parallel Sparse Linear Algebra

  • Aug 28, 2023
  • ACM Computing Surveys
  • Guoqing Xiao +5
  • PDF
  • Research Article
  • Citations9

Compiling Structured Tensor Algebra

  • Oct 16, 2023
  • Proceedings of the ACM on Programming Languages
  • Mahdi Ghorbani +3
  • Book Chapter
  • Citations2

Parallel Minimum Spanning Forest Computation using Sparse Matrix Kernels

  • Jan 01, 2022
  • Tim Baer +2
  • Research Article
  • Citations5

Accelerating Tensor Swapping in GPUs With Self-Tuning Compression

  • Dec 01, 2022
  • IEEE Transactions on Parallel and Distributed Systems
  • Ping Chen +6
  • PDF
  • Research Article
  • Citations1

Compiling Recurrences over Dense and Sparse Arrays

  • Apr 29, 2024
  • Proceedings of the ACM on Programming Languages
  • Shiv Sundram +2
  • Conference Article

Abstract: Matrices Over Runtime Systems at Exascale

  • Nov 01, 2012
  • Emmanuel Agullo +19
  • Conference Article
  • Citations15

Lighthouse

  • Nov 15, 2015
  • Pate Motter +3
  • Research Article

An alternative proof on higher order derivatives of a multilinear map

  • Nov 22, 2018
  • Linear and Multilinear Algebra
  • Sónia Carvalho
  • Conference Article
  • Citations12

Generating Portable High-Performance Code via Multi-Dimensional Homomorphisms

  • Sep 01, 2019
  • Ari Rasch +2
  • Conference Article

An adaptive method for N-dimensional tensor factorization on sparse data processing

  • Dec 01, 2017
  • Mu Li +4
  • Conference Article
  • Citations7

Loop level speculation in a task based programming model

  • Dec 01, 2013
  • Rahulkumar Gayatri +2
  • Conference Article

English-Chinese Corpus Collection and Artificial Intelligence Translation Algorithm based on Dynamic Clustering and Sparse Representation of Signals

  • Apr 28, 2022
  • Jingyu An +1
  • Research Article
  • Citations39

Analysis of dynamically scheduled tile algorithms for dense linear algebra on multicore architectures

  • Aug 22, 2011
  • Concurrency and Computation: Practice and Experience
  • Azzam Haidar +3
  • Research Article
  • Citations66

Enabling simulation at the fifth rung of DFT: Large scale RPA calculations with excellent time to solution

  • Nov 05, 2014
  • Computer Physics Communications
  • Mauro Del Ben +5
  • Research Article
  • Citations7

Occamy: A 432-Core Dual-Chiplet Dual-HBM2E 768-DP-GFLOP/s RISC-V System for 8-to-64-bit Dense and Sparse Computing in 12-nm FinFET

  • Apr 01, 2025
  • IEEE Journal of Solid-State Circuits
  • Paul Scheffler +14
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.