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 条
  • [31] Sparse Matrix-Vector Product for the bmSparse Matrix Format in GPUs
    Berger, Gonzalo
    Dufrechou, Ernesto
    Ezzatti, Pablo
    EURO-PAR 2023: PARALLEL PROCESSING WORKSHOPS, PT I, EURO-PAR 2023, 2024, 14351 : 246 - 256
  • [32] Sparse matrix solvers on the GPU:: Conjugate gradients and multigrid
    Bolz, J
    Farmer, I
    Grinspun, E
    Schröder, P
    ACM TRANSACTIONS ON GRAPHICS, 2003, 22 (03): : 917 - 924
  • [33] A wavelet-based algebraic multigrid preconditioner for sparse linear systems
    Pereira, Fabio Henrique
    Lopes Verardi, Sergio Luis
    Nabeta, Silvio Ikuyo
    APPLIED MATHEMATICS AND COMPUTATION, 2006, 182 (02) : 1098 - 1107
  • [34] TileSpMSpV: A Tiled Algorithm for Sparse Matrix-Sparse Vector Multiplication on GPUs
    Ji, Haonan
    Song, Huimin
    Lu, Shibo
    Jin, Zhou
    Tan, Guangming
    Liu, Weifeng
    51ST INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, ICPP 2022, 2022,
  • [35] Power grid analysis and optimization using algebraic multigrid
    Zhuo, Cheng
    Hu, Jiang
    Zhao, Min
    Chen, Kangsheng
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2008, 27 (04) : 738 - 751
  • [36] A Unified Optimization Approach for Sparse Tensor Operations on GPUs
    Liu, Bangtian
    Wen, Chengyao
    Sarwate, Anand D.
    Dehnavi, Maryam Mehri
    2017 IEEE INTERNATIONAL CONFERENCE ON CLUSTER COMPUTING (CLUSTER), 2017, : 47 - 57
  • [37] SPARSE MATRIX COMPUTATION OF CRITICAL FREQUENCIES
    WONG, YM
    POTTLE, C
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS, 1976, 23 (02): : 92 - 95
  • [38] Efficient computation of the permanent of a sparse matrix
    Mittal, RC
    Al-Kurdi, A
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 2001, 77 (02) : 189 - 199
  • [39] A framework for general sparse matrix-matrix multiplication on GPUs and heterogeneous processors
    Liu, Weifeng
    Vinter, Brian
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2015, 85 : 47 - 61
  • [40] Predicting optimal sparse general matrix-matrix multiplication algorithm on GPUs
    Wei, Bingxin
    Wang, Yizhuo
    Chang, Fangli
    Gao, Jianhua
    Ji, Weixing
    INTERNATIONAL JOURNAL OF HIGH PERFORMANCE COMPUTING APPLICATIONS, 2024, 38 (03): : 245 - 259