Affiliation:
1. Beijing Institute of Technology, Beijing, China
2. Beijing Normal University, Beijing, China
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.
Funder
National Natural Science Foundation of China
Publisher
Association for Computing Machinery (ACM)
Reference51 articles.
1. Achi Brandt, Steve McCormick, and John Ruge. Algebraic Multigrid (AMG) for Automatic Multigrid Solution with Application to Geodetic Computations. Technical report, Colorado State University, Fort Collins, CO. (1983).
2. V-cycle Multigrid Algorithms for Discontinuous Galerkin Methods on Non-nested Polytopic Meshes
3. Automatic Selection of Sparse Matrix Representation on GPUs
4. Sparse matrix format selection with multiclass SVM for SpMV on GPU;Benatia Akrem;45th International Conference on Parallel Processing (ICPP),2016
5. Bridging the gap between deep learning and sparse matrix format selection;Zhao Yue;Proceedings of the 23rd ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming,2018