Open GoogleCodeExporter opened 8 years ago
Original comment by wnbell
on 14 Feb 2011 at 7:21
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
Original comment by wnbell
on 5 Feb 2012 at 1:06
Original issue reported on code.google.com by
wnbell
on 29 Apr 2010 at 12:02