[PyOpenCL] Whoa...shared contexts work now!
Keith Brafford
keith.brafford at gmail.com
Fri Feb 25 11:20:24 PST 2011
Andreas Kloeckner <lists at ...> writes:
>
> Can you send a patch so that the resulting example should work
> everywhere?
>
Is something this simple ok? It works on my mac and my CPU only Windows machine.
I can't test it on my HD5870 Windows machine for awhile.
in gl_interop_demo.py:
line 28:
if sys.platform == "darwin":
ctx = cl.Context(properties=get_gl_sharing_context_properties(),
devices=[])
else:
try:
ctx = cl.Context(properties=[
(cl.context_properties.PLATFORM, plats[0])]
+ get_gl_sharing_context_properties())
except:
ctx = cl.Context(properties=[
(cl.context_properties.PLATFORM, plats[0])]
+ get_gl_sharing_context_properties(),
devices = [plats[0].get_devices()[0]])
More information about the PyOpenCL
mailing list