Performance-portable sparse matrix-matrix multiplication for many-core architectures
Authors:
- 1 May 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 693-702
Abstract
We consider the problem of writing performance portablesparse matrix-sparse matrix multiplication (SPGEMM) kernelfor many-core architectures. We approach the SPGEMMkernel from the perspectives of algorithm design and implementation, and its practical usage. First, we design ahierarchical, memory-efficient SPGEMM algorithm. We thendesign and implement thread scalable data structures thatenable us to develop a portable SPGEMM implementation. We show that the method achieves performance portabilityon massively threaded architectures, namely Intel's KnightsLanding processors (KNLs) and NVIDIA's Graphic ProcessingUnits (GPUs), by comparing its performance to specializedimplementations. Second, we study an important aspectof SPGEMM's usage in practice by reusing the structure ofinput matrices, and show speedups up to 3× compared to thebest specialized implementation on KNLs. We demonstratethat the portable method outperforms 4 native methods on2 different GPU architectures (up to 17× speedup), and it ishighly thread scalable on KNLs, in which it obtains 101× speedup on 256 threads.Keywords
This publication has 14 references indexed in Scilit:
- Parallel Graph Coloring for Manycore Architectures2016
- Exploiting Multiple Levels of Parallelism in Sparse Matrix-Matrix MultiplicationSIAM Journal on Scientific Computing, 2016
- Optimizing Sparse Matrix—Matrix Multiplication for the GPUACM Transactions on Mathematical Software, 2015
- GPU-Accelerated Sparse Matrix-Matrix Multiplication by Iterative Row MergingSIAM Journal on Scientific Computing, 2015
- An Efficient GPU General Sparse Matrix-Matrix Multiplication for Irregular Data2014
- Simultaneous Input and Output Matrix Partitioning for Outer-Product--Parallel Sparse Matrix-Matrix MultiplicationSIAM Journal on Scientific Computing, 2014
- Design Considerations for a Flexible Multigrid Preconditioning LibraryScientific Programming, 2012
- The Combinatorial BLAS: design, implementation, and applicationsThe International Journal of High Performance Computing Applications, 2011
- Structure Prediction and Computation of Sparse Matrix ProductsJournal of Combinatorial Optimization, 1998
- Two Fast Algorithms for Sparse Matrices: Multiplication and Permuted TranspositionACM Transactions on Mathematical Software, 1978