Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support cusp matrix containers in cpp files #11

Open
GoogleCodeExporter opened this issue Jun 28, 2015 · 3 comments
Open

support cusp matrix containers in cpp files #11

GoogleCodeExporter opened this issue Jun 28, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: Milestone-Release0.3
  • Removed labels: Milestone-Release0.2

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Added labels: Milestone-Release0.4
  • Removed labels: Milestone-Release0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant