Am 15.02.2014 um 05:29 schrieb Brandon Amos <[email protected]>:

> Hi all, I'm really interested in the pyopencl project and on integrating
> with clBLAS [0], as discussed in a previous thread [1],
> and I'm currently working on building a Python C extension to
> use pyopencl objects with clBLAS.
> 
> However, I'm very new to building Python C extensions,
> and I'm new to writing Python C extensions, and
> the interoperability documentation [2] mentions pyopencl objects
> contain `from_int_ptr()` and `int_ptr`, but unfortunately
> no examples are given.
> 
> So, as a first step to help me learn about build a Python C extension
> to interoperate with pyopencl, and to help anybody else,
> I've created a project on GitHub [3] to show a simple usage.
> It's still very much a work in progress and needs a lot of cleaning.
> 

Dear Brandon,

perhaps you have already noticed that I wrote a python wrapper for clFFT 
(gpyfft, on github) that supports pyopencl. I have been using cython, which I 
strongly recommend if you are better in programming Python than C. 

I have been using cwrap to avoid some of the simple but tedious work for the 
low-level wrapping. Because of the rather big API of clBLAS an automated 
wrapper generator like xdress or even SWIG can save you a lot of work. 

Gregor


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to