Hi Andreas, I installed this using: pip install --upgrade git+https://github.com/inducer/pyopencl@pybind11 <git+https://github.com/inducer/pyopencl@pybind11>
It works on debian9, and runs with unmodified gpyfft. Great ! However it fails building on debian8 (I only tried on debian9 last time): ####################### […] x86_64-linux-gnu-gcc -pthread -fwrapv -Wall -O3 -DNDEBUG -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -I/mntdirect/_sware/exp/pynx/devel/include/site/python3.4 -I/mntdirect/_sware/exp/pynx/devel/include/site/python3.4 -I/mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include -I/mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include -I/mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -I/mntdirect/_sware/exp/pynx/devel/include/python3.4m -c src/wrap_constants.cpp -o build/temp.linux-x86_64-3.4/src/wrap_constants.o -DVERSION_INFO="2018.2" -std=c++14 -fvisibility=hidden In file included from /mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0, from /mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4, from src/numpy_init.hpp:6, from src/wrap_cl.hpp:61, from src/wrap_constants.cpp:1: /mntdirect/_sware/exp/pynx/devel/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^ In file included from src/wrap_cl.hpp:62:0, from src/wrap_constants.cpp:1: src/tools.hpp: In function ‘auto pyopencl::begin(pyopencl::reversion_wrapper<T>)’: src/tools.hpp:40:48: error: ‘rbegin’ is not a member of ‘std’ auto begin (reversion_wrapper<T> w) { return std::rbegin(w.iterable); } ^ src/tools.hpp: In function ‘auto pyopencl::end(pyopencl::reversion_wrapper<T>)’: src/tools.hpp:43:46: error: ‘rend’ is not a member of ‘std’ auto end (reversion_wrapper<T> w) { return std::rend(w.iterable); } ^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ######################### That’s with: gcc version 4.9.2 (Debian 4.9.2-10+deb8u1) I guess std::rend and std::rbegin are too recent a feature (C++14 ?) to be widely available ? Can you use the member functions rend/rbegin instead ? Best, Vincent -- Vincent Favre-Nicolin
_______________________________________________ PyOpenCL mailing list PyOpenCL@tiker.net https://lists.tiker.net/listinfo/pyopencl