Level-based Blocking for Sparse Matrices: Sparse Matrix-Power-Vector Multiplication

Christie L. Alappat, Georg Hager, Olaf Schenk, Gerhard Wellein
5/3/2022
math.NAcs.DCcs.PF

Official code: RRZE-HPC/RACE (12 stars, C++, AGPL-3.0, last commit 2026-08-27).

Abstract

The multiplication of a sparse matrix with a dense vector (SpMV) is a key component in many numerical schemes and its performance is known to be severely limited by main memory access. Several numerical schemes require the multiplication of a sparse matrix polynomial with a dense vector, which is typically implemented as a sequence of SpMVs.

Show full abstract

This results in low performance and ignores the potential to increase the arithmetic intensity by reusing the matrix data from cache. In this work we use the recursive algebraic coloring engine (RACE) to enable blocking of sparse matrix data across the polynomial computations. In the graph representing the sparse matrix we form levels using a breadth-first search. Locality relations of these levels are then used to improve spatial and temporal locality when accessing the matrix data and to implement an efficient multithreaded parallelization. Our approach is independent of the matrix structure and avoids shortcomings of existing "blocking" strategies in terms of hardware efficiency and parallelization overhead. We quantify the quality of our implementation using performance modelling and demonstrate speedups of up to 3$\times$ and 5$\times$ compared to an optimal SpMV-based baseline on a single multicore chip of recent Intel and AMD architectures. As a potential application, we demonstrate the benefit of our implementation for a Chebyshev time propagation scheme, representing the class of polynomial approximations to exponential integrators. Further numerical schemes which may benefit from our developments include $s$-step Krylov solvers and power clustering algorithms.

View on arXivView PDF

Code Implementations(1)

RRZE-HPC/RACEOfficial100%
AGPL-3.0

The Recursive Algebraic Coloring Engine

123C++, CMakeFeb 10, 20203 months agoAGPL-3.0

Similar Papers

Cite this paper

@article{alappat2022levelbased,
  title  = {Level-based Blocking for Sparse Matrices: Sparse Matrix-Power-Vector Multiplication},
  author = {Christie L. Alappat and Georg Hager and Olaf Schenk and Gerhard Wellein},
  year   = {2022},
  eprint = {2205.01598},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.01598}
}

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/2205.01598.svg)](https://codeofpaper.com/paper/2205.01598)

Discussion