Set the environment variable PYOPENCL_CTX='0' to avoid being asked again. 2D Square droplet deformation with 102400 fluid particles /home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/compyle/jit.py:199: UserWarning: In code in line 5: c[0] = floor((x) / h) ^ Function called is not marked by the annotate decorator. Argument type defaulting to 'double'. If the type is not 'double', store the value in a variable of appropriate type and use the variable warnings.warn(msg) /home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/compyle/jit.py:199: UserWarning: In code in line 7: c[1] = floor((y) / h) ^ Function called is not marked by the annotate decorator. Argument type defaulting to 'double'. If the type is not 'double', store the value in a variable of appropriate type and use the variable warnings.warn(msg) /home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/compyle/jit.py:199: UserWarning: In code in line 9: c[2] = floor((z) / h) ^ Function called is not marked by the annotate decorator. Argument type defaulting to 'double'. If the type is not 'double', store the value in a variable of appropriate type and use the variable warnings.warn(msg) Warning: the following symbols are implicitly defined. {'j'} You may want to explicitly declare/define them. Warning: the following symbols are implicitly defined. {'m', 'k', 'j'} You may want to explicitly declare/define them. Generating output in /home/stephan/Simulations/GPU/test/square_droplet_output Reading code from /home/stephan/.pysph/source/py3.9-linux-x86_64/m_7963fb631c3ebdc210faedb2b9dd0b2e.cl ---------------------------------------------------------------------- No of particles: fluid: 112896 ---------------------------------------------------------------------- Setup took: 3.66175 secs 0%| | 0it | 0.0e+00s [00:0.0<00:0.0 | 0.000s/it] /home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/sph/integrator.py:280: RuntimeWarning: overflow encountered in double_scalars self.nnps.update() Traceback (most recent call last): File "/home/stephan/Simulations/GPU/test/square_droplet.py", line 199, in app.run() File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/solver/application.py", line 1538, in run self.solve() File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/solver/application.py", line 1611, in solve self.solver.solve(not self.options.quiet) File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/solver/solver.py", line 476, in solve self.integrator.step(self.t, self.dt) File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/sph/integrator.py", line 272, in step self.c_integrator.step(time, dt) File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/sph/integrator_gpu_helper.py", line 114, in step self.one_timestep(t, dt) File "", line 11, in one_timestep File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/sph/integrator_gpu_helper.py", line 86, in compute_accelerations self.integrator.compute_accelerations(index, update_nnps) File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/PySPH-1.0b1.dev0-py3.9-linux-x86_64.egg/pysph/sph/integrator.py", line 280, in compute_accelerations self.nnps.update() File "pysph/base/gpu_nnps_base.pyx", line 240, in pysph.base.gpu_nnps_base.GPUNNPS.update File "pysph/base/gpu_nnps_base.pyx", line 257, in pysph.base.gpu_nnps_base.GPUNNPS.update File "pysph/base/z_order_gpu_nnps.pyx", line 123, in pysph.base.z_order_gpu_nnps.ZOrderGPUNNPS._bin File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/compyle/array.py", line 334, in zeros out = gpuarray.zeros(get_queue(), n, dtype) File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/pyopencl/array.py", line 2252, in zeros result = Array(None, shape, dtype, File "/home/stephan/.pyenv/versions/pysph_gpu/lib/python3.9/site-packages/pyopencl/array.py", line 580, in __init__ self.base_data = cl.Buffer( TypeError: __init__(): incompatible constructor arguments. The following argument types are supported: 1. pyopencl._cl.Buffer(context: pyopencl._cl.Context, flags: int, size: int = 0, hostbuf: object = None) Invoked with: >, 1, 36892362247512260608