Accelerating GNNs on GPU Sparse Tensor Cores through N:M Sparsity-Oriented Graph Reordering
- North Carolina State University
Recent GPUs have introduced Sparse Tensor Cores (SPTC) to accelerate computations on sparse matrices meeting the N:M sparse patterns. Software tools expand the support to more general V:N:M patterns. Graphs in Graph Neural Networks (GNNs) are typically sparse, but the sparsity is often irregular, not conforming to the required V:N:M sparse patterns. This paper proposes a novel graph reordering algorithm to transform irregular graph data into the required sparse patterns for GNNs to benefit from SPTC. The optimization is lossless, maintaining the accuracy of GNN. It at the same time keeps the symmetry of the adjacency matrices of the graphs so that the same matrices can remain compatible with many symmetry-based graph algorithms. The optimization successfully removes 98-100% violations of the N:M sparse patterns at the vector level and increases the portion of conforming graphs in the SuiteSparse collection from 5-9% to 88.7-93.5%. On A100 GPUs, the optimization accelerates Sparse Matrix Matrix (SpMM) by up to 43X (a geomean speedup of 2.3X - 7.5X) over cuSPARSE and speeds up the key graph operations in GNNs on real graphs by as much as 8.6X (3.5X on average).
- Research Organization:
- North Carolina State University
- Sponsoring Organization:
- USDOE Office of Energy Efficiency and Renewable Energy (EERE), Renewable Power Office. Solar Energy Technologies Office
- DOE Contract Number:
- EE0009357
- OSTI ID:
- 2524569
- Country of Publication:
- United States
- Language:
- English
Similar Records
Accelerating GNNs on GPU Sparse Tensor Cores through N:M Sparsity-Oriented Graph Reordering
Design Principles for Sparse Matrix Multiplication on the GPU
pnnl/emp-gnn
Conference
·
Thu Feb 27 23:00:00 EST 2025
·
OSTI ID:2545648
Design Principles for Sparse Matrix Multiplication on the GPU
Conference
·
Mon Aug 27 00:00:00 EDT 2018
·
OSTI ID:1457016
pnnl/emp-gnn
Software
·
Wed Feb 28 19:00:00 EST 2024
·
OSTI ID:code-123162