Hi Charles,

> One followup question, what distinguishes handle(), handle1(), and
> handle2()?  Do they refer to different buffers?

.handle() is the only one you need for vectors and dense matrices. 
Sparse matrices are represented by multiple arrays, hence the different 
handleX() routines (with numbers X)

Best regards,
Karli




> On Fri, Aug 12, 2016 at 3:13 PM, Karl Rupp <r...@iue.tuwien.ac.at
> <mailto:r...@iue.tuwien.ac.at>> wrote:
>
>     Hi Charles,
>
>     call .handle()/.handle1()/.handle2() to get the abstract memory
>     buffers, and call .opencl_handle() on them to get the cl_mem handles:
>
>      A.handle().opencl_handle()
>
>     Similarly, the command queue is obtained with
>      viennacl::ocl::get_queue().handle().get()
>
>     Unfortunately it's not explicitly written in the manual :-/
>
>     Best regards,
>     Karli
>
>
>     On 08/12/2016 09:39 PM, Charles Determan wrote:
>
>         I also would need to access the command queue handle
>         (cl_command_queue)
>         object to pass to clBLAS and clMAGMA functions.  Is this easily
>         accessible as well?
>
>         Thanks,
>         Charles
>
>         On Fri, Aug 12, 2016 at 11:45 AM, Charles Determan
>         <cdeterma...@gmail.com <mailto:cdeterma...@gmail.com>
>         <mailto:cdeterma...@gmail.com <mailto:cdeterma...@gmail.com>>>
>         wrote:
>
>             Thanks Karl,
>
>             I have been looking through the docs and I can't find an
>         example for
>             how to pull the OpenCL handles from a matrix.  I saw a couple I
>             think from a context but not sure that is what I need.  Is
>         this in
>             the documentation somewhere?  The closest I could fine is
>         this page
>             (http://viennacl.sourceforge.net/doc/manual-memory.html
>         <http://viennacl.sourceforge.net/doc/manual-memory.html>
>             <http://viennacl.sourceforge.net/doc/manual-memory.html
>         <http://viennacl.sourceforge.net/doc/manual-memory.html>>).
>
>             Regards,
>             Charles
>
>             On Wed, Aug 10, 2016 at 12:09 PM, <r...@iue.tuwien.ac.at
>         <mailto:r...@iue.tuwien.ac.at>
>             <mailto:r...@iue.tuwien.ac.at
>         <mailto:r...@iue.tuwien.ac.at>>> wrote:
>
>                 Hi Charles,
>
>
>                     I have recently expressed some interest in different
>                     factorizations such as
>                     QR and SVD.  I am aware that these or currently
>         experimental
>                     within
>                     ViennaCL.  Until such a time that these
>         factorizations are
>                     fully supported
>                     (I hope to contribute but the algorithms are quite
>         complex)
>                     would it be
>                     feasible to interface with a library like clMAGMA?
>         I'm not
>                     sure of any
>                     other library offhand that does implement these
>         methods.  I
>                     thought perhaps
>                     VexCL but I couldn't find anything to that effect in the
>                     documentation.
>
>
>                 Sure, you can always grab the OpenCL handles from the
>         matrices
>                 and plug that into clMAGMA.
>                 I don't think there is any value in ViennaCL wrapping the
>                 clMAGMA interfaces, though.
>
>                 Best regards,
>                 Karli
>
>
>
>
>
>


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to