On Dienstag 10 Februar 2009, Peter Berrington wrote:
I didn't see any response on the mailing list so I
thought I'd ask again.
Has anyone made any attempt at wrapping the cuda opengl interop functions
in pycuda? I've never used boost before and I'm not sure how to proceed.
I'd really like to be able to use pycuda to post process an opengl pixel
buffer object but without the cudaGLRegisterBufferObject and
cudaGLMapBufferObject functions I don't see how I can do this.
I predict that after reading this email, you'll be very happy.
Check recent git, configure with --cuda-enable-gl=1. (or CUDA_ENABLE_GL=True
in siteconf.py, whichever style you prefer)
It compiles for me, but is otherwise entirely untested. I would like you to do
three things in return:
- Test and report back with the result. (I have no way of doing so.)
- Write the simplest possible example that does something useful and submit it
- Fill out the documentation in doc/source/gl.rst and submit a patch.
Also see http://documen.tician.de/pycuda/gl.html
I saw there was a recent release of codepy; would
codepy allow one include
and call the C cuda opengl functions directly or am I misunderstanding how
codepy in principle would allow you to do that, but since PyCuda already
builds a Boost.Python extension as part of its build, that would be a rather
roundabout and non-portable (Linux-only) way of doing it.
Thanks for your response.
You're welcome. :)