Hello All,

I am getting started with ViennaCL. The PDF reference manual has an example in 
section 10.2, where, a dense-matrix is initialized with a data pointer. I was 
just trying it out with GPU memory. I get a compilation error. The following is 
the snippet.


ScalarType* cuda_x;
cudaMalloc(&cuda_x, 3*3*sizeof(ScalarType));
viennacl::matrix<ScalarType> vcl_A(cuda_x, viennacl::CUDA_MEMORY, 3, 3);


While there is a constructor for vector object in the vector.hpp file, there is 
none in the matrix.hpp file. Am I missing something?  Is there another class 
that I need to look at?


Thanks for the help,
Pushkar
------------------------------------------------------------------------------
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to