sailfish-team / sailfish

Lattice Boltzmann (LBM) simulation package for GPUs (CUDA, OpenCL)
http://sailfish.us.edu.pl
230 stars 85 forks source link

OpenCL backend doesn't work with pyopencl >= 2018.2 #46

Open dact221 opened 5 years ago

dact221 commented 5 years ago

Hi

I tried to run Sailfish on a Conda environment with the latest version of pyopencl, but it seems backend_opencl.py use copy aliases. Checking the pyopencl repository I found that copy aliases were removed in v2018.2:

https://github.com/inducer/pyopencl/commit/a9a14a441a663dde289813c55bc18fb95119b8b3

Copy aliases were replaced by the enqueue_copy function.

It would be fine to update backend_opencl.py or edit pyopencl version in setup.py to pyopencl >= 2013.2, < 2018.2.