High-performance sparse matrix-matrix (SpMM) multiplication is paramount for science and industry, as the ever-increasing sizes of data prohibit using dense data structures. Yet, existing hardware, such as Tensor Cores (TC), is ill-suited for SpMM, as it imposes strict constraints on data structures that cannot be met by unstructured sparsity found in many applications. To address this, we introduce (S)parse (Ma)trix Matrix (T)ensor Core-accelerated (SMaT): a novel SpMM library that utilizes TCs for unstructured sparse matrices. Our block-sparse library leverages the low-level CUDA MMA (matrix-matrix-accumulate) API, maximizing the performance offered by modern GPUs. Algorithmic optimizations such as sparse matrix permutation, further improve performance by minimizing the number of non-zero blocks. The evaluation on NVIDIA A100 shows that SMaT outperforms SotA libraries (DASP, cuSPARSE, and Magicube) by up to 125x (on average 2.6x). SMaT can be used to accelerate many workloads in scientific computing, large model training, inference, and others.

High Performance Unstructured SpMM Computation Using Tensor Cores / Okanovic, Patrik; Kwasniewski, Grzegorz; Sylos Labini, Paolo; Besta, Maciej; Vella, Flavio; Hoefler, Torsten. - ELETTRONICO. - (2024), pp. 1-14. ( 2024 International Conference for High Performance Computing, Networking, Storage and Analysis, SC 2024 Atlanta, Georgia World Congress Center, USA 2024) [10.1109/SC41406.2024.00060].

High Performance Unstructured SpMM Computation Using Tensor Cores

Flavio Vella;
2024-01-01

Abstract

High-performance sparse matrix-matrix (SpMM) multiplication is paramount for science and industry, as the ever-increasing sizes of data prohibit using dense data structures. Yet, existing hardware, such as Tensor Cores (TC), is ill-suited for SpMM, as it imposes strict constraints on data structures that cannot be met by unstructured sparsity found in many applications. To address this, we introduce (S)parse (Ma)trix Matrix (T)ensor Core-accelerated (SMaT): a novel SpMM library that utilizes TCs for unstructured sparse matrices. Our block-sparse library leverages the low-level CUDA MMA (matrix-matrix-accumulate) API, maximizing the performance offered by modern GPUs. Algorithmic optimizations such as sparse matrix permutation, further improve performance by minimizing the number of non-zero blocks. The evaluation on NVIDIA A100 shows that SMaT outperforms SotA libraries (DASP, cuSPARSE, and Magicube) by up to 125x (on average 2.6x). SMaT can be used to accelerate many workloads in scientific computing, large model training, inference, and others.
2024
SC24: International Conference for High Performance Computing, Networking, Storage and Analysis
345 E 47TH ST, NEW YORK, NY 10017 USA
IEEE Computer Society
9798350352917
Settore INF/01 - Informatica
Settore ING-INF/05 - Sistemi di Elaborazione delle Informazioni
Settore INFO-01/A - Informatica
Settore IINF-05/A - Sistemi di elaborazione delle informazioni
Okanovic, Patrik; Kwasniewski, Grzegorz; Sylos Labini, Paolo; Besta, Maciej; Vella, Flavio; Hoefler, Torsten
High Performance Unstructured SpMM Computation Using Tensor Cores / Okanovic, Patrik; Kwasniewski, Grzegorz; Sylos Labini, Paolo; Besta, Maciej; Vella, Flavio; Hoefler, Torsten. - ELETTRONICO. - (2024), pp. 1-14. ( 2024 International Conference for High Performance Computing, Networking, Storage and Analysis, SC 2024 Atlanta, Georgia World Congress Center, USA 2024) [10.1109/SC41406.2024.00060].
File in questo prodotto:
File Dimensione Formato  
High_Performance_Unstructured_SpMM_Computation_Using_Tensor_Cores.pdf

Solo gestori archivio

Tipologia: Versione editoriale (Publisher’s layout)
Licenza: Tutti i diritti riservati (All rights reserved)
Dimensione 1.73 MB
Formato Adobe PDF
1.73 MB Adobe PDF   Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11572/445354
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 4
  • ???jsp.display-item.citation.isi??? 1
  • OpenAlex 3
social impact