Optimization of Sparse Matrix Computation for Algebraic Multigrid on GPUs

被引:0
|
作者
Wang, Yizhuo [1 ]
Chang, Fangli [1 ]
Wei, Bingxin [1 ]
Gao, Jianhua [2 ]
Ji, Weixing [2 ]
机构
[1] Beijing Inst Technol, Beijing, Peoples R China
[2] Beijing Normal Univ, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Algebraic multigrid; generalized sparse matrix-matrix multiplication; sparse matrix-vector multiplication; machine learning; GPU; SIZE-ESTIMATION; PARALLELISM; LIBRARY; CORE;
D O I
10.1145/3664924
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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 x on Tesla V100 and 1.96 x 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.
引用
收藏
页数:27
相关论文
共 50 条
  • [1] Accelerating algebraic multigrid solvers on NVIDIA GPUs
    Liu, Hui
    Yang, Bo
    Chen, Zhangxin
    COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2015, 70 (05) : 1162 - 1181
  • [2] Efficient Algebraic Multigrid Preconditioners on Clusters of GPUs
    Hassan, Ambra Abdullahi
    Cardellini, Valeria
    D'Ambra, Pasqua
    di Serafino, Daniela
    Filippone, Salvatore
    PARALLEL PROCESSING LETTERS, 2019, 29 (01)
  • [3] Algebraic Multigrid Solver on Clusters of CPUs and GPUs
    Neic, Aurel
    Liebmann, Manfred
    Haase, Gundolf
    Plank, Gernot
    APPLIED PARALLEL AND SCIENTIFIC COMPUTING, PT II, 2012, 7134 : 389 - 398
  • [4] Three-precision algebraic multigrid on GPUs
    Tsai, Yu-Hsiang Mike
    Beams, Natalie
    Anzt, Hartwig
    FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2023, 149 : 280 - 293
  • [5] REDUCING COMMUNICATION COSTS FOR SPARSE MATRIX MULTIPLICATION WITHIN ALGEBRAIC MULTIGRID
    Rallard, Grey
    Siefer, Christopher
    Hu, Jonathan
    SIAM JOURNAL ON SCIENTIFIC COMPUTING, 2016, 38 (03): : C203 - C231
  • [6] BootCMatchG: An adaptive Algebraic MultiGrid linear solver for GPUs
    Bernaschi, Massimo
    D'Ambra, Pasqua
    Pasquini, Dario
    SOFTWARE IMPACTS, 2020, 6
  • [7] Optimization techniques for sparse matrix-vector multiplication on GPUs
    Maggioni, Marco
    Berger-Wolf, Tanya
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2016, 93-94 : 66 - 86
  • [8] PORTING AN AGGREGATION-BASED ALGEBRAIC MULTIGRID METHOD TO GPUS
    Abdeselam A.E.H.
    Napov A.
    Notay Y.
    Electronic Transactions on Numerical Analysis, 2022, 55 : 687 - 705
  • [9] Optimization of Sparse Matrix-Vector Multiplication with Variant CSR on GPUs
    Feng, Xiaowen
    Jin, Hai
    Zheng, Ran
    Hu, Kan
    Zeng, Jingxiang
    Shao, Zhiyuan
    2011 IEEE 17TH INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS (ICPADS), 2011, : 165 - 172
  • [10] Sparse matrix approximations for multigrid methods
    Bolten, Matthias
    Huckle, Thomas K.
    Kravvaritis, Christos D.
    LINEAR ALGEBRA AND ITS APPLICATIONS, 2016, 502 : 58 - 76