Skip to main navigation Skip to search Skip to main content

Optimal sparse matrix dense vector multiplication in the I/O-model

  • Aarhus University
  • University of Southern Denmark
  • Swiss Federal Institute of Technology Zurich

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

21 Scopus citations

Abstract

We analyze the problem of sparse-matrix dense-vector multiplication (SpMV) in the I/O-model. The task of SpMV is to compute y := Ax, where A is a sparse N × N matrix and x and y are vectors. Here, sparsity is expressed by the parameter k that states that A has a total of at most kN nonzeros, i.e., an average number of k nonzeros per column. The extreme choices for parameter k are well studied special cases, namely for k = 1 permuting and for k = N dense matrix-vector multiplication. We study the worst-case complexity of this computational task, i.e., what is the best possible upper bound on the number of I/Os depending on k and N only. We determine this complexity up to a constant factor for large ranges of the parameters. By our arguments, we find that most matrices with kN nonzeros require this number of I/Os, even if the program may depend on the structure of the matrix. The model of computation for the lower bound is a combination of the I/O-models of Aggarwal and Vitter, and of Hong and Kung. We study two variants of the problem, depending on the memory layout of A. If A is stored in column major layout, SpMV has I/O complexity ⊖(min {kN/B (1 + logM/B N/max{M,k}), kN}) for k ≤ N1-ε and any constant 1 > ε > 0. If the algorithm can choose the memory layout, the I/O complexity of SpMV is ⊖(min{kN/B (1 + logM/B N/kM), kN}) for k ≤ 3√N. In the cache oblivious setting with tall cache assumption M ≥ B1+ε, the I/O complexity is O(kN/B(1 + logM/B N/k)) for A in column major layout.

Original languageEnglish
Title of host publicationSPAA'07
Subtitle of host publicationProceedings of the Nineteenth Annual Symposium on Parallelism in Algorithms and Architectures
Pages61-70
Number of pages10
DOIs
StatePublished - 2007
EventSPAA'07: 19th Annual Symposium on Parallelism in Algorithms and Architectures - San Diego, CA, United States
Duration: Jun 9 2007Jun 11 2007

Publication series

NameAnnual ACM Symposium on Parallelism in Algorithms and Architectures

Conference

ConferenceSPAA'07: 19th Annual Symposium on Parallelism in Algorithms and Architectures
Country/TerritoryUnited States
CitySan Diego, CA
Period06/9/0706/11/07

Keywords

  • External memory algorithms
  • I/O-model
  • Lower bound
  • Sparse matrix dense vector multiplication

Fingerprint

Dive into the research topics of 'Optimal sparse matrix dense vector multiplication in the I/O-model'. Together they form a unique fingerprint.

Cite this