14791

Structural Agnostic SpMV: Adapting CSR-Adaptive for Irregular Matrices

Mayank Daga, Joseph L. Greathouse
AMD Research, Advanced Micro Devices, Inc., USA
IEEE International Conference on High Performance Computing (HiPC 2015), 2015

@article{greathouse2015structural,

   title={Structural Agnostic SpMV: Adapting CSR-Adaptive for Irregular Matrices},

   author={Greathouse, Mayank Daga Joseph L},

   year={2015}

}

Download Download (PDF)   View View   Source Source   Source codes Source codes

Package:

2481

views

Sparse matrix vector multiplication (SpMV) is an important linear algebra primitive. Recent research has focused on improving the performance of SpMV on GPUs when using compressed sparse row (CSR), the most frequently used matrix storage format on CPUs. Efficient CSR-based SpMV obviates the need for other GPU-specific storage formats, thereby saving runtime and storage overheads. However, existing CSR-based SpMV algorithms on GPUs perform poorly on irregular sparse matrices, limiting their usefulness. We propose a novel approach for SpMV on GPUs which works well for both regular and irregular matrices while keeping the CSR format intact. We start with CSR-Adaptive, which dynamically chooses between two SpMV algorithms depending on the length of each row. We then add a series of performance improvements, such as a more efficient reduction technique. Finally, we add a third algorithm which uses multiple parallel execution units when operating on irregular matrices with very long rows. Our implementation dynamically assigns the best algorithm to sets of rows in order to ensure that the GPU is efficiently utilized. We effectively double the performance of CSR-Adaptive, which had previously demonstrated better performance than algorithms that use other storage formats. In addition, our implementation is 36% faster than CSR5, the current state of the art for SpMV on GPUs.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: