Design patterns for sparse-matrix computations on hybrid CPU/GPU platforms

  • Authors:
  • Valeria Cardellini;Salvatore Filippone;Damian W. I. Rouson

  • Affiliations:
  • Università di Roma “Tor Vergata”, Roma, Italy. E-mails: cardellini@ing.uniroma2.it, salvatore.filippone@uniroma2.it;Università di Roma “Tor Vergata”, Roma, Italy. E-mails: cardellini@ing.uniroma2.it, salvatore.filippone@uniroma2.it;Stanford University, Stanford, CA, USA. E-mail: rouson@stanford.edu

  • Venue:
  • Scientific Programming
  • Year:
  • 2014

Quantified Score

Hi-index 0.00

Visualization

Abstract

We apply object-oriented software design patterns to develop code for scientific software involving sparse matrices. Design patterns arise when multiple independent developments produce similar designs which converge onto a generic solution. We demonstrate how to use design patterns to implement an interface for sparse matrix computations on NVIDIA GPUs starting from PSBLAS, an existing sparse matrix library, and from existing sets of GPU kernels for sparse matrices. We also compare the throughput of the PSBLAS sparse matrix--vector multiplication on two platforms exploiting the GPU with that obtained by a CPU-only PSBLAS implementation. Our experiments exhibit encouraging results regarding the comparison between CPU and GPU executions in double precision, obtaining a speedup of up to 35.35 on NVIDIA GTX 285 with respect to AMD Athlon 7750, and up to 10.15 on NVIDIA Tesla C2050 with respect to Intel Xeon X5650.