Questions tagged [cusp-library]

A library for sparse linear algebra and graph computations on CUDA.

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

38 questions
0
votes
1 answer

Not able to understand output of CSR Representation in CUSP

I am trying to use the CUSP library. I am reading .txt files which are basically sparse COO representation. I am using CUSP to convert into CSR format. When I print the matrix with cusp::print() it prints the correct outcome for COO representation.…
mkuse
  • 1,952
  • 4
  • 23
  • 57
0
votes
1 answer

How to return sparse matrix from CUSP::csr_matrix in MEX to Matlab?

I am developing my MEX file for sparse matrix computing with CUDA. I am using CUSP library. I don't know how to return cusp::csr_matrix back to Matlab. For example, I have cusp::csr_matrix At(m,n,N); So, it is At…
0
votes
1 answer

How do I copy the row_indices from a COO matrix to a thrust vector in CUSP

I have been trying to copy the row indices, column indices and values of a COO matrix into separate thrust vectors, but I find that I am unable to do so. Below is the code cusp::coo_matrix *sim_mat; …
akshayc11
  • 375
  • 1
  • 3
  • 8
0
votes
1 answer

wrap a cusp sparse matrix variable in thrust pointer

I am using cusp for sparse matrix multiplication. From the resultant matrix i need the max value without copying the matrix from device memory to host memory. I am planning to wrap the resultant matrix in thrust device pointer and then use the…
Terminal
  • 2,127
  • 3
  • 20
  • 35
-1
votes
1 answer

Convert Sparse Matrix from Eigen::SparseMatrix to Cusp::hyb_matrix

I am looking for a way to convert Eigen::SparseMatrix< float> <-> cusp::hyb_matrix< int, float, cusp::host_memory> back and forth. The Eigen matrix is a result of a previous computation and I need a cusp::hyb_matrix to use the GPU for conjugate…
Vtik
  • 2,824
  • 1
  • 18
  • 35
-1
votes
1 answer

Print csr format of a matrix with CUSP

I am trying to convert a sparse matrix into csr format using CUSP and CUDA. I modified slightly the code shown in CUSP documentation: #include #include #include #include int…
-1
votes
1 answer

Accessing real and imaginary parts of cusp::complex vector

I need to access the real and imaginary parts of a cusp::complex type vector, for the purpose of sending it to a matlab variable through, mex. How do I access the real and imaginary parts separately of a vector of type. …
-3
votes
1 answer

Compiling options for CUDA in VS2010

I'm trying to configure CUDA6.0 with my Visual Studio 2010. I created a project using CUDA 6.0 runtime. When compiling, do I need to change/add any options? Since my CUDA code runs slower than the series version, is there any chance that the code is…
1 2
3