Exploiting dynamic sparse matrices for performance portable linear algebra operations

Christodoulos Stylianou, Michele Weiland

Research output: Contribution to conferencePaperpeer-review

Abstract / Description of output

Sparse matrices and linear algebra are at the heart of scientific simulations. More than 70 sparse matrix storage formats have been developed over the years, targeting a wide range of hardware architectures and matrix types. Each format is developed to exploit the particular strengths of an architecture, or the specific sparsity patterns of matrices, and the choice of the right format can be crucial in order to achieve optimal performance. The adoption of dynamic sparse matrices that can change the underlying data-structure to match the computation at runtime without introducing prohibitive overheads has the potential of optimizing performance through dynamic format selection.In this paper, we introduce Morpheus, a library that provides an efficient abstraction for dynamic sparse matrices. The adoption of dynamic matrices aims to improve the productivity of developers and end-users who do not need to know and understand the implementation specifics of the different formats available, but still want to take advantage of the optimization opportunity to improve the performance of their applications. We demonstrate that by porting HPCG to use Morpheus, and without further code changes, 1) HPCG can now target heterogeneous environments and 2) the performance of the Sparse Matrix-Vector Multiplication (SpMV) kernel is improved up to 2.5× and 7× on CPUs and GPUs respectively, through runtime selection of the best format on each MPI process.

Original languageEnglish
Number of pages11
Publication statusPublished - 2022
EventThe International Conference for High Performance Computing, Networking, Storage, and Analysis: P3HPC Workshop - Dallas, United States
Duration: 13 Nov 202213 Nov 2023


ConferenceThe International Conference for High Performance Computing, Networking, Storage, and Analysis
Abbreviated titleSC22
Country/TerritoryUnited States
Internet address

Keywords / Materials (for Non-textual outputs)

  • sparse matrix storage formats
  • generic programming
  • dynamic matrices
  • performance portability
  • productivity


Dive into the research topics of 'Exploiting dynamic sparse matrices for performance portable linear algebra operations'. Together they form a unique fingerprint.

Cite this