BestSF: A sparse meta-format for optimizing SpMV on GPU

Akrem Benatia, Weixing Ji, Yizhuo Wang, Feng Shi

Research output: Contribution to journalArticlepeer-review

24 Citations (Scopus)

Abstract

The Sparse Matrix-Vector Multiplication (SpMV) kernel dominates the computing cost in numerous scientific applications. Many implementations based on different sparse formats were proposed to improve this kernel on the recent GPU architectures. However, it has been widely observed that there is no “best-for-all” sparse format for the SpMV kernel on GPU. Indeed, serious performance degradation of an order of magnitude can be observed without a careful selection of the sparse format to use. To address this problem, we propose in this article BestSF (Best Sparse Format), a new learning-based sparse meta-format that automatically selects the most appropriate sparse format for a given input matrix. To do so, BestSF relies on a cost-sensitive classification system trained using Weighted Support Vector Machines (WSVMs) to predict the best sparse format for each input sparse matrix. Our experimental results on two different NVIDIA GPU architectures using a large number of real-world sparse matrices show that BestSF achieved a noticeable overall performance improvement over using a single sparse format. While BestSF is trained to select the best sparse format in terms of performance (GFLOPS), our further experimental investigations revealed that using BestSF also led, in most of the test cases, to the best energy efficiency (MFLOPS/W). To prove its practical effectiveness, we also evaluate the performance and energy efficiency improvement achieved when using BestSF as a building block in a GPU-based Preconditioned Conjugate Gradient (PCG) iterative solver.

Original languageEnglish
Article number29
JournalTransactions on Architecture and Code Optimization
Volume15
Issue number3
DOIs
Publication statusPublished - Aug 2018

Keywords

  • Energy efficiency
  • GPU computing
  • Iterative solvers
  • Performance modeling
  • Sparse matrix-vector multiplication (SpMV)

Fingerprint

Dive into the research topics of 'BestSF: A sparse meta-format for optimizing SpMV on GPU'. Together they form a unique fingerprint.

Cite this