Wait...it was my fault! I forgot I had commented out the context acquisition line and replaced it with my own before I realized I had a wrongly compiled pyopencl:
#context = cl.Context(properties=[(cl.context_properties.PLATFORM, platform)] + get_gl_sharing_context_properties()) context = cl.Context(properties=[(cl.context_properties.PLATFORM, platform)] ) I returned it to its correct state and it works fine now. Any idea why the pip thing doesn't do it for me though? --Keith Brafford On Tue, Apr 29, 2014 at 10:24 PM, Keith R. Brafford < [email protected]> wrote: > I tried that, and no luck: > > >>> pyopencl.have_gl() > > False > > Then I did: > > pip uninstall pyopencl > > followed by: > > git clone http://git.tiker.net/trees/pyopencl.git > > cd pyopencl > > git submodule init > > git submodule update > > python configure.py --cl-enable-gl > > python setup.py build > > make > > python setup.py install > > And now I get this: > > >>> pyopencl.have_gl() > > True > > > So...Yay! I can run gl_interop_demo.py and it works well, but when I try > to run the particle demo I get a "Segfault 11" error. > > Segmentation fault: 11 > > with a "Python quit unexpectedly" message box popping up. > > Any ideas? > > --Keith Brafford > > > On Tue, Apr 29, 2014 at 10:00 PM, Andreas Kloeckner < > [email protected]> wrote: > >> "Keith R. Brafford" <[email protected]> writes: >> >> > I am trying to use pip to install pyopencl on OSX, but I can't get >> > pyopencl.have_gl() to return True. >> > >> > How can I tell pip to compile the module such that I can get gl >> > interoperability? >> >> Create a $HOME/.aksetup-defualts.py with one line: >> >> CL_HAVE_GL = True >> >> Then run the pip install. That should do it. If not, come back and yell >> at me. >> >> Andreas >> > >
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
