Re: [ViennaCL-devel] Interfacing with clMAGMA?

2016-08-15 Thread Charles Determan
Karl, I have the OpenCL backend enabled and I have tried: cl_mem bufA = A.handle().opencl_handle().get() cl_mem bufB = B.handle().opencl_handle().get() cl_mem bufC = C.handle().opencl_handle().get() cl_command_queue queue = viennacl::ocl::current_context().get_queue().handle().get(); err = clbl

Re: [ViennaCL-devel] Interfacing with clMAGMA?

2016-08-15 Thread Karl Rupp
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

Re: [ViennaCL-devel] Interfacing with clMAGMA?

2016-08-15 Thread Karl Rupp
Hi Charles, > I am trying to verify my interface with clBLAS before going completely > in to clMAGMA. However, I keep getting an OpenCL error -38 which > corresponds to invalid memory (CL_INVALID_MEM_OBJECT) when trying a > clblasDgemm call. This must be referring to the opencl memory handles I

Re: [ViennaCL-devel] Interfacing with clMAGMA?

2016-08-15 Thread Charles Determan
I am trying to verify my interface with clBLAS before going completely in to clMAGMA. However, I keep getting an OpenCL error -38 which corresponds to invalid memory (CL_INVALID_MEM_OBJECT) when trying a clblasDgemm call. This must be referring to the opencl memory handles I am passing in. The fi