Optimizing Block-Sparse Matrix Multiplications on CUDA with TVM

Zijing Gu
7/26/2020
cs.MScs.DCcs.LG

Official code: ceruleangu/Block-Sparse-Benchmark (23 stars, Python, last commit 2020-08-21).

Abstract

We implemented and optimized matrix multiplications between dense and block-sparse matrices on CUDA. We leveraged TVM, a deep learning compiler, to explore the schedule space of the operation and generate efficient CUDA code. With the automatic parameter tuning in TVM, our cross-thread reduction based implementation achieved competitive or better performance compared with other state-of-the-art frameworks.

View on arXivView PDF

Code Implementations(1)

Benchmark for matrix multiplications between dense and block sparse (BSR) matrix in TVM, blocksparse (Gray et al.) and cuSparse.

236Python, CudaMay 7, 20206 years ago

Similar Papers

Cite this paper

@article{gu2020optimizing,
  title  = {Optimizing Block-Sparse Matrix Multiplications on CUDA with TVM},
  author = {Zijing Gu},
  year   = {2020},
  eprint = {2007.13055},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.13055}
}

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/2007.13055.svg)](https://codeofpaper.com/paper/2007.13055)

Discussion