Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Skipping empty rows in mkl_dcsrmv()

$
0
0

In my application, I use mkl_dcsrmv(). I encounter matrices with empty rows. At most, one eighth of the rows are empty. Is there any solution to skip empty rows in CSR-based sparse matrix-vector multiplication?

One solution is to remove empty rows before mkl_dcsrmv() and scatter/gather the vectors. But this does not seem feasible and it may not be efficient.

A solution, which is adopted in OSKI[1], is adding a list that contains non-empty rows and iterating over this list during the sparse matrix-vector multiplication.

[1] http://bebop.cs.berkeley.edu/oski/


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>