Rare matrix operations on CUDA

I am working on converting Matlab big code to C ++ and CUDA. I have problems converting some sparse matrix operations, such as:

1. full_Matrix * sparse_Matrix 2. sparse_Matrix * full_Matrix 3. sparse_Matrix * sparse_Matrix (SOLVED WITH CUSP) 4. full_Matrix .* sparse_Matrix (elementwise multiplication) 5. sparse_Matrix * full_Matrix (elementwise multiplication) 6. sparse_Matrix .* sparse_Matrix (elementwise multiplication) 

I managed to solve 2 using CUSPARSE and 3 using CUSP, however I could not use CUSP (or CUSPARSE) for elementwise matrix multiplication or for problem 1.

I am wondering if there is a CUDA library that implements all the above operations (preferably open source).

+5
source share
1 answer

This link can help you. CUDA Sparse Matrix Reduction

+1
source

Source: https://habr.com/ru/post/911910/


All Articles