Hi Andreas That is unfortunate, I can't debug it as I don't have an ATI card. I commited a possible fix, but it is nothing more than a guess (here is the diff: https://github.com/benma/pysph/commit/7f4a51d66702a5442e82d413480ac8db294d4dd0 ).
If it is not too much trouble, please get the newest version (pull or "git clone [email protected]:benma/pysph.git") and test again. If it still does not work, I would need someone with an ati card to pitch in and help debug this problem. Best, Marko --------------- Date: Sat, 12 May 2012 15:38:30 -0400 From: Andreas Kloeckner <[email protected]> To: <[email protected]> Subject: Re: [PyOpenCL] pysph: a particle fluid simulation using pyopencl Message-ID: <[email protected]> Content-Type: text/plain; charset=UTF-8; format=flowed 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
