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 :)
On Thu, Sep 29, 2011 at 12:32 PM, Erik Edin <erikedin(a)kth.se> wrote:
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.
From: pyopencl-bounces(a)tiker.net [pyopencl-bounces(a)tiker.net] on behalf of
Andreas Kloeckner [lists(a)informa.tiker.net]
Sent: Thursday, September 29, 2011 08:19
To: Roman Valov; pyopencl(a)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(a)gmail.com>
Hello, thank you for your reply.
I've run SimpleGL example from NVidia GPU SDK, it works fine. I've made
investigations on it and found that in SimpleGL
0x10000, however in python applications it is
permanently 0x20000 (I'm
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?
PyOpenCL mailing list