On Tue, Sep 27, 2011 at 10:23 AM, Andreas Kloeckner <li...@informa.tiker.net
> wrote:

> On Mon, 26 Sep 2011 13:32:47 +0400, Roman Valov <roman.va...@gmail.com>
> wrote:
> Non-text part: multipart/mixed
> Non-text part: multipart/alternative
> > Hello, folks.
> >
> > Currently I've been involved into research project of cellular automata.
> We
> > 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
> realize
> > that since it's very early version and there is no sense to support it
> but
> > probably somebody will be able to help me. So I've setup my dev
> environment
> > (python, pyopengl, pygame, pyopencl, nvidia cuda toolkit) and have tried
> to
> > 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 main
> >     ctx = cl.Context(properties=[(cl.context_properties.PLATFORM,
> platform)]
> > + get_gl_sharing_context_properties(),
> devices=[platform.get_devices()[0]])
> > 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
> run
> > 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>)]


> Thanks,
> Andreas
>
>
>
>
_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
http://lists.tiker.net/listinfo/pyopencl

Reply via email to