Skip to main navigation Skip to search Skip to main content

A Pattern-Based SpGEMM Library for Multi-Core and Many-Core Architectures

  • Zhen Xie
  • , Guangming Tan
  • , Weifeng Liu
  • , Ninghui Sun
  • CAS - Institute of Computing Technology
  • University of Chinese Academy of Sciences
  • China University of Petroleum - Beijing

Research output: Contribution to journalArticlepeer-review

26 Scopus citations

Abstract

General sparse matrix-matrix multiplication (SpGEMM) is one of the most important mathematical library routines in a number of applications. In recent years, several efficient SpGEMM algorithms have been proposed, however, most of them are based on the compressed sparse row (CSR) format, and the possible performance gain from exploiting other formats has not been well studied. And some specific algorithms are restricted to parameter tuning that has a significant impact on performance. So the particular format, algorithm, and parameter that yield the best performance for SpGEMM remain undetermined. In this article, we conduct a prospective study on format-specific parallel SpGEMM algorithms and analyze their pros and cons. We then propose a pattern-based SpGEMM library, that provides a unified programming interface in the CSR format, analyses the pattern of two input matrices, and automatically determines the best format, algorithm, and parameter for arbitrary matrix pairs. For this purpose, we build an algorithm set that integrates three new designed algorithms with existing popular libraries, and design a hybrid deep learning model called MatNet to quickly identify patterns of input matrices and accurately predict the best solution by using sparse features and density representations. The evaluation shows that this library consistently outperforms the state-of-the-art library. We also demonstrate its adaptability in an AMG solver and a BFS algorithm with 30 percent performance improvement.

Original languageEnglish
Article number9459513
Pages (from-to)159-175
Number of pages17
JournalIEEE Transactions on Parallel and Distributed Systems
Volume33
Issue number1
DOIs
StatePublished - Jan 1 2022

Keywords

  • SpGEMM
  • auto-tuning
  • neural network
  • spare BLAS
  • sparse format

Fingerprint

Dive into the research topics of 'A Pattern-Based SpGEMM Library for Multi-Core and Many-Core Architectures'. Together they form a unique fingerprint.

Cite this