On Tue, 15 Jun 2010 12:02:07 +0200, Paolo Simone Gasparello <djgaspa(a)gmail.=
> Hi guys, anyone got OpenGL interoperability work?
> With the following patch I'm able to create a context sharing OpenGL
Applied, thanks. (And I'm kind of embarrassed that you had to fix these
> Where fun_double is a kernel included in the file program.cl that simply
> does each coord *=3D 2.
> There are better ways to do this? I tryed to perform the cast to
> c_void_p in C++ code using boost::python, but I was not able to make the
> code work.
I took a look, and it doesn't seem like ctypes has much in the way of
C-accessible interface. One can of course emulate the Python code in
C++, but I'm not sure that's necessary. If you'd like guidance on how to
do that, let me know.
Lastly, would you mind posting a fully functional example so that I can
add it to the examples/ directory shipped with PyOpenCL? I think that
could be rather helpful for people trying to follow in your footsteps.
Thanks for your work!