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

Reply via email to