12 questions
2
votes
1
answer
116
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 ...
1
vote
0
answers
48
views
Can't generate a simple CuSparseMatrixCOO using CUDA from Julia
At the moment I'm trying to build a COO using the CUSPARSE library. Looking at the documentation, and the function arguments, the way to create this is using the row and column indices followed by the ...
0
votes
1
answer
223
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 ...
-2
votes
1
answer
228
views
Assemble COO matrix from a list of possibly repeated triplets in CUDA
Given a std::vector<Eigen::Triplet<double>> its possible to create a Eigen::SparseMatrix<double> using setFromTriplets function. This function, by default, accumulates repeated ...
0
votes
1
answer
378
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
0
answers
60
views
Adding cusparse dependency in meson build
I am building an application with meson that uses NVIDIA cuSPARSE library. Currently, I have to hard code the cusparse version information into the dependency as shown below:
cusparse_dep = dependency(...
0
votes
1
answer
279
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
861
views
internal error when trying to perform matrix transpose using cusparseCsr2cscEx2() function of cuSPARSE
I am need to perform transpose of a matrix(CSR) using cuSPARSE, but get “internal error”. I write my code referring to How to transpose a sparse matrix in cuSparse? and https://docs.nvidia.com/cuda/...
0
votes
1
answer
85
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
953
views
How to use cusparseXcoo2csr in cuSparse to convert from coo to csc?
In the documentation of cuSparse, it stated that the function cusparseXcoo2csr
can also be used to convert the array containing the uncompressed
column indices (corresponding to COO format) into ...
0
votes
1
answer
792
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 ...
0
votes
1
answer
191
views
Weird mistake while compilation
My cuSparse program worked correctly but after modifying it I've got a bunch of mistakes:
/tmp/tmpxft_000014cd_00000000-14_Sample2.0.o: In function `main':
tmpxft_000014cd_00000000-3_Sample2.0....