12 questions
2
votes
1
answer
111
views
How to convert Eigen Sparse Matrix to Cuda CuSparse Matrix
I am trying to convert an Eigen Sparse Matrix of size NxN to CuSparse matrix so that I can use CUDA to solver the matrix Ax=B. Came across this thread which is pretty old (Convert Eigen::SparseMatrix ...
0
votes
1
answer
219
views
How can I call the functions in the cuSPARSE library in a __device__ function?
I want to call the sparse matrix multiplication function in cuSPARSE library inside the kernel instead of directly calling it at the host side. I write a __device__ function to implement it.My CUDA is ...
0
votes
1
answer
377
views
function cusparseScsr2csc in cuSPARSE library return strange result
I want to test the cusparseScsr2csc which is a function used to convert a csr format matrix to a csc format matrix (or just say transpose a csr format matrix), so I write the code below to test it.
...
0
votes
1
answer
278
views
Is it possible to use HYB or ELL sparse matrix multiplication(SPMV) in CUSPARSE 11?
I am updating my CUDA code with sparse matrix multiplication(SPMV). I found the HYB or ELL format sparse matrix related functions in cuSparse 11 are removed. But for my practical problem, HYB format ...
0
votes
1
answer
84
views
Meaning of 'i' in function names `cusparse<t>axpyi` and `cusparse<t>doti`
cusparse<t>axpyi and cusparse<t>doti are function names in cuSPARSE, the CUDA sparse matrix library.
The naming conventions section explains <t> denotes data types, and axpyi, ...
0
votes
1
answer
788
views
How to get the diagonal of a sparse matrix in cuSparse?
I have a sparse matrix in cuSparse and I want to extract the diagonal. I can't seem to find a way to do it other than converting it back to CPU memory into Eigen SparseMatrix and use the .diagonal ...