Optimization of Sparse Matrix Computation for Algebraic Multigrid on GPUs

Yizhuo Wang, Fangli Chang, Bingxin Wei, Jianhua Gao, Weixing Ji

Research output: Contribution to journalArticlepeer-review

Abstract

AMG is one of the most efficient and widely used methods for solving sparse linear systems. The computational process of AMG mainly consists of a series of iterative calculations of generalized sparse matrix-matrix multiplication (SpGEMM) and sparse matrix-vector multiplication (SpMV). Optimizing these sparse matrix calculations is crucial for accelerating solving linear systems. In this paper, we first focus on optimizing the SpGEMM algorithm in AmgX, a popular AMG library for GPUs. We propose a new algorithm called SpGEMM-upper, which achieves an average speedup of 2.02× on Tesla V100 and 1.96× on RTX 3090 against the original algorithm. Next, through experimental investigation, we conclude that no single SpGEMM library or algorithm performs optimally for most sparse matrices, and the same holds true for SpMV. Therefore, we build machine learning-based models to predict the optimal SpGEMM and SpMV used in the AMG calculation process. Finally, we integrate the prediction models, SpGEMM-upper, and other selected algorithms into a framework for adaptive sparse matrix computation in AMG. Our experimental results prove that the framework achieves promising performance improvements on the test set.

Original languageEnglish
Article number54
JournalTransactions on Architecture and Code Optimization
Volume21
Issue number3
DOIs
Publication statusPublished - 14 Sept 2024

Keywords

  • Algebraic multigrid
  • generalized sparse matrix-matrix multiplication
  • GPU
  • machine learning
  • sparse matrix-vector multiplication

Fingerprint

Dive into the research topics of 'Optimization of Sparse Matrix Computation for Algebraic Multigrid on GPUs'. Together they form a unique fingerprint.

Cite this