[PyCuda] opengl PBOs and pycuda

Andreas Klöckner lists at informa.tiker.net
Thu Feb 12 00:41:06 PST 2009


Hi Peter,

one request: please keep the list cc'd--maybe somebody there knows something.

On Donnerstag 12 Februar 2009, Peter Berrington wrote:
> Still no dice, there is always an error initializing or making the gl
> context regardless of whatever I make a standard cuda context before, or
> whether I use  pycuda.gl.init(), pycuda.gl.make_context(), or importing
> pycuda.gl.autoinit to try and set up a gl context, I always end up with
> these cryptic messages:
>
> pycuda._driver.Error: cuGLInit failed: unknown
>
> or
>
> pycuda._driver.Error: cuGLCtxCreate failed: unknown

Does dmesg say anything?

> Do you have the cuda 2.0 SDK handy by any chance? I'm trying to recreate
> the behaviour of the postProcessGL program which is included, but I noticed
> they do not explicitly set up an opengl context in that code; there is a
> single call to cutilDeviceInit(argc, argv) as the program is initialized
> but I don't know whether that ends up calling cuGLInit or not, as its part
> of the cuda cutil library. Any ideas what might be wrong?

cutil source is included under common/, there's no GL stuff in there. There's 
also no explicit GL interop initialization in the SDK--for the runtime API, 
that's apparently not necessary.

Check this here, too:
- http://forums.nvidia.com/index.php?showtopic=58779&hl=cuGLInit

If you're still not having any luck, I'll try to get some help from Nvidia.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20090212/a99f943d/attachment-0001.pgp>


More information about the PyCUDA mailing list