patricknharris / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

support cusp matrix containers in cpp files #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Support allocation and deallocation of Cusp matrix containers in CPP files.  

Original issue reported on code.google.com by wnbell on 29 Apr 2010 at 12:02

GoogleCodeExporter commented 8 years ago

Original comment by wnbell on 14 Feb 2011 at 7:21

GoogleCodeExporter commented 8 years ago
I'm not sure what's the problem with declaring matrix containers in cpp files.
I tried doing:
#include <cusp/csr_matrix.h>

int main(){
  cusp::csr_matrix<int,float,cusp::device_memory> A(4,3,6);
  cusp::array1d<float, cusp::device_memory> x(3);
  cusp::array1d<float, cusp::device_memory> y(4);
}

And it worked fine. I can compile it and link against .cu files that do the 
actual work on the matrix.
You just have to make sure to include the CUDA include files.
Are there other containers which don't work? Does the bug report mean something 
else?

Original comment by filipe.c...@gmail.com on 28 Feb 2011 at 7:14

GoogleCodeExporter commented 8 years ago

Original comment by wnbell on 5 Feb 2012 at 1:06