ACM Transactions on Architecture and Code Optimization

Accelerating Sparse LU Factorization with Performance-Aware Partitioning Method on GPUs

Zhen Hu, Dongliang Xiong, Zhengyu Wang, Yefu Wang, Changjun Wu, Kai Huang

Key points

From the paper's conclusion
  • It also brings significant speedups on an NVIDIA RTX Pro 6000 and demonstrates performance advantages over two representative sparse direct solvers.

Abstract

To meet the high-performance requirement in sparse LU factorization, it is essential to partition large-scale matrices into blocks. However, the diversity of sparse matrices poses a significant challenge to efficient partitioning. Existing methods either select a matrix-specific uniform block size from global features or construct variable-size blocks according to local nonzero distributions. These methods are effective mainly when matrices exhibit pronounced structural patterns, but become less reliable for weak or mixed patterns because structural features alone do not capture target-specific kernel performance. In this work, we propose a performance-aware partitioning method that combines empirical kernel-specific task performance models on a target GPU with backward greedy search. Offline, we profile the four numerical kernels in block LU factorization and train kernel-specific XGBoost models using block dimensions, arithmetic workloads, and nonzero-distribution statistics. Online, these models estimate task runtimes from symbolic block structures and compute numerical cost. Starting from a uniform boundary array, the algorithm traverses candidate boundaries from right to left and merges adjacent diagonal blocks when the performance model predicts a reduction in runtime. Experimental results on the SuiteSparse Matrix Collection on NVIDIA H100 demonstrate that integrating our partitioning method into PanguLU achieves geometric mean speedups of 4.53× and 3.54× over PanguLU with regular and structure-aware partitioning, respectively. It also brings significant speedups on an NVIDIA RTX Pro 6000 and demonstrates performance advantages over two representative sparse direct solvers.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Accelerating Sparse LU Factorization with Performance-Aware Partitioning Method on GPUs — Science Skim