Performance of the load-balanced SpMV kernel for the bmSparse matrix format

The bmSparse format is a bitmap-based sparse matrix storage format originally designed for the sparse matrix-matrix product (SpGeMM) on GPUs. Recently, we proposed a load-balanced SpMV kernel for this format that distributes computation evenly across CUDA blocks, introducing a configuration parameter nBlocks that significantly affects kernel performance. However, after a preliminary evaluation, we could not reach an acceptable automatic criterion for selecting this parameter. In this work, we seek to specify a heuristic that can correctly predict a value of nBlocks which can reach near-optimal execution times, when compared to other possible selections of the same value. We first perform a grid search over fixed nBlocks values on a dataset of 1,189 matrices from the SuiteSparse Matrix Collection, identifying the number of bmSparse blocks as the matrix characteristic most predictive of the optimal value. Then, a linear regression on this characteristic yields the heuristic nBlocks = 11 x sqrt(bmsparse_num_blocks), computable in O(1) time from data already available after matrix loading. We then evaluate the kernel using this heuristic against cuSparse's implementations of CSR, BSR, and SELL. When compared to BSR, bmSparse wins on 54.5% of matrices with a median speedup of 1.470x, while for SELL it wins on 49.9% of the matrices with a median speedup of 0.993x. The CSR implementation consistently outperforms bmSparse, which achieves superlinear speedups on only 0.3% of matrices. Despite this, we identify a practical use case where bmSparse yields lower total execution time than cuSparse CSR, applications where the amount of SpMV operations does not compensate for cuSparse's setup overhead.

Authors

Institutions

Publication Details

Journal
CLEI electronic journal
Published
2026-11-25
DOI
https://doi.org/10.19153/cleiej.29.5.4
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Performance of the load-balanced SpMV kernel for the bmSparse matrix format

Ernesto Dufrechou, Gonzalo Berger, Pablo Ezzatti
2 links
CLEI electronic journal
Parallel Computing and Optimization Techniques
article

Performance of the load-balanced SpMV kernel for the bmSparse matrix format

Ernesto Dufrechou, Gonzalo Berger, Pablo Ezzatti
article en

Abstract

The bmSparse format is a bitmap-based sparse matrix storage format originally designed for the sparse matrix-matrix product (SpGeMM) on GPUs. Recently, we proposed a load-balanced SpMV kernel for this format that distributes computation evenly across CUDA blocks, introducing a configuration parameter nBlocks that significantly affects kernel performance. However, after a preliminary evaluation, we could not reach an acceptable automatic criterion for selecting this parameter. In this work, we seek to specify a heuristic that can correctly predict a value of nBlocks which can reach near-optimal execution times, when compared to other possible selections of the same value. We first perform a grid search over fixed nBlocks values on a dataset of 1,189 matrices from the SuiteSparse Matrix Collection, identifying the number of bmSparse blocks as the matrix characteristic most predictive of the optimal value. Then, a linear regression on this characteristic yields the heuristic nBlocks = 11 x sqrt(bmsparse_num_blocks), computable in O(1) time from data already available after matrix loading. We then evaluate the kernel using this heuristic against cuSparse's implementations of CSR, BSR, and SELL. When compared to BSR, bmSparse wins on 54.5% of matrices with a median speedup of 1.470x, while for SELL it wins on 49.9% of the matrices with a median speedup of 0.993x. The CSR implementation consistently outperforms bmSparse, which achieves superlinear speedups on only 0.3% of matrices. Despite this, we identify a practical use case where bmSparse yields lower total execution time than cuSparse CSR, applications where the amount of SpMV operations does not compensate for cuSparse's setup overhead.

CLEI electronic journalVol. 29(5)
Universidad de la República de Uruguay (UY)
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon