3
votes

cuSparse only has a function api for multiplying a sparse matrix with a dense matrix. How to do multiply operation for two sparse matrices using cuSparse or any other cuda liberary?

2
Can you update the link to the actual function showing multiplication of two sparse matrices ? - Pavan Yalamanchili

2 Answers

2
votes

As I commented, the CUSP library is available for matrix multiplication. From the site:

Cusp is a library for sparse linear algebra and graph computations on CUDA. Cusp provides a flexible, high-level interface for manipulating sparse matrices and solving sparse linear systems.

6
votes

The current version of cuSPARSE (CUDA Toolkit v5.0) supports sparse matrix-sparse matrix multiplications using the cusparse<t>csrgemm functions.

For this routine, compute capability 2.0 or better is needed.