Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to multiply two sparse matrix using cuSparse?

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?

like image 320
Andrew Avatar asked Apr 16 '26 01:04

Andrew


2 Answers

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.

like image 109
shinjin Avatar answered Apr 19 '26 03:04

shinjin


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.

like image 38
flipchart Avatar answered Apr 19 '26 04:04

flipchart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!