Accelerating Sparse Matrix-Matrix Multiplication with GPU Tensor Cores

Orestis Zachariadis, Nitin Satpute, Juan Gómez-Luna, Joaquín Olivares
9/29/2020
cs.MScs.DCcs.PF

Official code: oresths/tSparse (74 stars, Cuda, Apache-2.0, last commit 2020-10-01).

Abstract

Sparse general matrix-matrix multiplication (spGEMM) is an essential component in many scientific and data analytics applications. However, the sparsity pattern of the input matrices and the interaction of their patterns make spGEMM challenging.

Show full abstract

Modern GPUs include Tensor Core Units (TCUs), which specialize in dense matrix multiplication. Our aim is to re-purpose TCUs for sparse matrices. The key idea of our spGEMM algorithm, tSparse, is to multiply sparse rectangular blocks using the mixed precision mode of TCUs. tSparse partitions the input matrices into tiles and operates only on tiles which contain one or more elements. It creates a task list of the tiles, and performs matrix multiplication of these tiles using TCUs. To the best of our knowledge, this is the first time that TCUs are used in the context of spGEMM. We show that spGEMM, with our tiling approach, benefits from TCUs. Our approach significantly improves the performance of spGEMM in comparison to cuSPARSE, CUSP, RMerge2, Nsparse, AC-SpGEMM and spECK.

View on arXivView PDF

Code Implementations(1)

oresths/tSparseOfficial100%
Apache-2.0

A GPU algorithm for sparse matrix-matrix multiplication

7415Cuda, C++Dec 17, 20196 years agoApache-2.0

Similar Papers

Cite this paper

@article{zachariadis2020accelerating,
  title  = {Accelerating Sparse Matrix-Matrix Multiplication with GPU Tensor Cores},
  author = {Orestis Zachariadis and Nitin Satpute and Juan Gómez-Luna and Joaquín Olivares},
  year   = {2020},
  eprint = {2009.14600},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.14600}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.14600.svg)](https://codeofpaper.com/paper/2009.14600)

Discussion