On Tue, Sep 27, 2011 at 10:23 AM, Andreas Kloeckner <lists(a)informa.tiker.net
> On Mon, 26 Sep 2011 13:32:47 +0400, Roman Valov <roman.valov(a)gmail.com>
> Non-text part: multipart/mixed
> Non-text part: multipart/alternative
> > Hello, folks.
> > Currently I've been involved into research project of cellular automata.
> > use pyopencl to run our models and currently I've trying to view how our
> > project will work under development preview version of windows 8. I
> > that since it's very early version and there is no sense to support it
> > probably somebody will be able to help me. So I've setup my dev
> > (python, pyopengl, pygame, pyopencl, nvidia cuda toolkit) and have tried
> > run the project. But it fails on very early state with traceback:
> > Traceback (most recent call last):
> > File "D:\return\dotbox\nayadra\nayadra\nayadra.py", line 134, in
> > ctx = cl.Context(properties=[(cl.context_properties.PLATFORM,
> > + get_gl_sharing_context_properties(),
> > pyopencl.LogicError: Context failed: invalid gl sharegroup reference khr
> > I'm totally dumb in cl insides but I'll be happy to provide any info or
> > somekind of debug output code to get this.
> Can you run one of Nvidia's shipped CL-GL interop demos to establish
> whether this is supposed to work just yet?
Hello, thank you for your reply.
I've run SimpleGL example from NVidia GPU SDK, it works fine. I've made some
investigations on it and found that in SimpleGL wglGetCurrentContext returns
0x10000, however in python applications it is permanently 0x20000 (I'm using
pygame to create opengl window). I've tried to substitute GL_CONTEXT_KHR
value in context properties with 0x10000 but with no success.
Here is list of properties I'm passing to Context creation:
[(8200, 131072), (8203, 18446744072820433310L), (4228, <pyopencl.Platform
'NVIDIA CUDA' at 0x67c1390>)]