Menu

Create viennacl::vector<int>

kszyh
2011-04-19
2013-06-12
  • kszyh

    kszyh - 2011-04-19

    Hi,
    I had read documentation but I didn't find anything about creating vectors of integers. Is it possible?

     
  • Karl Rupp

    Karl Rupp - 2011-04-19

    Hi,
    with ViennaCL 1.1.1 it's not directly possible. Integer types (vector<>, matrix<>, etc.) will be provided with ViennaCL 1.2.0, which is to be released in May.
    Best regards,
    Karli

     
  • kszyh

    kszyh - 2011-04-19

    Thank you for reply. I'll wait for the next version.

     
  • Karl Rupp

    Karl Rupp - 2011-05-22

    Hi kszyh,

    we decided to release version 1.1.2 now instead of version 1.2.0. Since 1.1.2 is essentially a polishing of features available in 1.1.1, there are no vector<int> available in 1.1.2. Version 1.2.0 will be released during summer 2011, thus I'm sorry to ask you for a little more patience…

    Best regards,
    Karli

     
  • Sanjay

    Sanjay - 2017-08-03

    Hello Karl,

    Can I declare 2 viennacl::matrix<int>es and run linalg::cuda::prod_impl (matmul) on them and expect a correct answer, as of v1.7.1 ?

    I went through the source, and there seems to be a limitation on the datatypes only when prod is accessed through the BLAS like APIs, i.e.ViennaCLgemm and ViennaCLCUDAgemm_impl. I'm not 100% sure as I have not perused the code.

    Thanks !

     

    Last edit: Sanjay 2017-08-03
  • Karl Rupp

    Karl Rupp - 2017-08-03

    Hi Sanjay,

    yes, sparse matrix-vector and sparse matrix-matrix products should also work for integers.

    The nightly tests don't cover the integer cases for reasons of compilation time. If you run into problems, please let us know and we will fix it for the upcoming 1.8.0 release.

    Best regards,
    Karli

     

Log in to post a comment.