Hello, Eric.
Thank you for being involved. I've already replied to Andreas and it seems it's pygame problem, because glut-driven apps works fine.
Also there is no secondary GPU or display device in my system. So my investigations will be continued in other direction :)
Regards, Roman.

On Thu, Sep 29, 2011 at 12:32 PM, Erik Edin <erikedin@kth.se> wrote:
Hello,

I don't know if this is relevant to this case, but I had the same (or very similar issue) on a recently purchased laptop. I also got the error "pyopencl.LogicError: Context failed: invalid gl sharegroup reference khr".
The issue here turned out to be the secondary GPU that the laptop had installed. The laptop has an NVIDIA GT555M card, but also an integrated Optimus GPU which is not OpenCL compatible. My solution was to disable the use of the Optimus device, using the NVIDIA control panel.
Roman, if you're using a laptop this might be something to look into. If you're using a desktop machine, then this is probably not relevant. The Optimus GPU is (as I understand it) used for saving power, so they are only used in laptops.

Erik

________________________________________
From: pyopencl-bounces@tiker.net [pyopencl-bounces@tiker.net] on behalf of Andreas Kloeckner [lists@informa.tiker.net]
Sent: Thursday, September 29, 2011 08:19
To: Roman Valov; pyopencl@tiker.net
Subject: Re: [PyOpenCL] running pyopencl on windows 8 dev preview

On Tue, 27 Sep 2011 11:13:27 +0400, Roman Valov <roman.valov@gmail.com> wrote:
> 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>)]

Does PyOpenCL's gl_interop example work?

Andreas

_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
http://lists.tiker.net/listinfo/pyopencl