Hi Namik,

 > On our last IRC meeting it has been decided to drop Qr & Solver
> benchmarks. That would allow us to also drop Boost from ViennaCL
> Benchmark. The issue, however, is that Sparse benchmark still heavily
> uses boost ublas. I thought I might use
> viennacl::vector&compressed_matrix and
> viennacl::linalg::prod&inplace_solve to replace the boost equivalents.
> That didn't work so good as I'm getting ambiguous call to overloaded
> function
> 'copy(viennacl::compressed_matrix<float>&,
> viennacl::compressed_matrix<float>&)'
>
> The issue is on these lines:
>
>    //cpu  to  gpu:
>
>    viennacl::copy(ublas_matrix,  vcl_compressed_matrix_1);
>
> #ifndef  VIENNACL_EXPERIMENTAL_DOUBLE_PRECISION_WITH_STREAM_SDK_ON_GPU
>
>    viennacl::copy(ublas_matrix,  vcl_compressed_matrix_4);
>
>    viennacl::copy(ublas_matrix,  vcl_compressed_matrix_8);
>
> #endif
>
>    viennacl::copy(ublas_matrix,  vcl_coordinate_matrix_128);
>
>    viennacl::copy(ublas_matrix,  vcl_ell_matrix_1);
>
>    viennacl::copy(ublas_matrix,  vcl_hyb_matrix_1);
>
> It seems that it's not supposed to be used in this way, since ublas_matrix is 
> now of type viennacl::compressed_matrix. What should I do to drop the usage 
> of boost in Sparse benchmark?

The replacement for this uses a sparse matrix type obtained from a 
nesting of std::vector and std::map, i.e.
  std::vector< std::map<size_t, T> >

I'll update the respective benchmark for you when I'm back in Vienna 
later this week.

Best regards,
Karli


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to