On Fri, May 4, 2012 at 4:36 PM, Andreas Kloeckner
<[email protected]>wrote:

> On Fri, 4 May 2012 13:36:23 +0200, Marko Bencun <[email protected]> wrote:
> > Hello everyone
> >
> > I created a sph fluid simulation with Python and pyopencl. Find it here:
> > https://github.com/benma/pysph.
> >
> > I would appreciate any feedback. Also, since I have an nvidia card, I
> would
> > be glad if someone using an ATI card could test it and tell me whether it
> > works.
>
> Hey,
>
> that looks great. Thanks for sharing. When I try to run your code, it
> complains about not finding libCg.so, even after I install
> 'nvidia-cg-toolkit'. But in any case, since I don't have an Nv card
> connected to a display, I don't think anything using Cg will end up
> working for me. How hard would it be to make a non-Cg mode? :)
>
> Thanks,
> Andreas
>
>
I meant to reply to the list, I accidentally only replied to you.

Hi Andreas

Cg is cross platform and cross vendor, so it should work with your ATI (?)
card, provided that libCg.so and libCgGL.so can be found. In any case, you
can disable Cg/advanced rendering by using `python
--disable-advanced-rendering 8000`, but then you will only see blue dots
moving around.

What is your OS? Is libCg.so anywhere to be found in /usr/lib/? (execute
`find /usr/lib -name libCg*`). If you can find it, you can try entering the
full path to the libraries in src/cg/platform.py (e.g.
CDLL('/usr/lib/.../libCg.so')).

Best, Marko
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to