Am 04.05.2012 07:36, schrieb Marko Bencun:
Hello everyone
I created a sph fluid simulation with Python and pyopencl. Find it
here: https://github.com/benma/pysph [1].
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.
Best, Marko
Finally got a chance to try this on my AMD Llano APU, no luck:
7290 particles
initial density: 1000, mass: 17.146776406, gas constant k: 1000,
timestep: 0.00407722018784
(20, 20, 20) 8000 cells
/home/andreas/src/pyopencl/pyopencl/__init__.py:36: CompilerWarning:
Non-empty compiler output encountered. Set the environment variable
PYOPENCL_COMPILER_OUTPUT=1 to see more.
"to see more.", CompilerWarning)
/home/andreas/pack/pysph/src/sph/sph.py:198: DeprecationWarning: struct
integer overflow masking is deprecated
np.float32(self.mass))
Traceback (most recent call last):
File "/home/andreas/pack/pysph/src/fluid_widget.py", line 44, in
initializeGL
self.sph_demo.glinit()
File "/home/andreas/pack/pysph/src/sph_demo.py", line 29, in glinit
self.fluid_simulator.cl_init()
File "/home/andreas/pack/pysph/src/sph/sph.py", line 177, in cl_init
self.cl_init_data()
File "/home/andreas/pack/pysph/src/sph/sph.py", line 205, in
cl_init_data
self.position_cl = cl.GLBuffer(ctx, mf.READ_WRITE,
int(self.position_vbo.buffers[0]))
LogicError: clCreateFromGLBuffer failed: invalid gl object
Any ideas?
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl