[pypy-dev] PyOpenCL wants to move from cffi to pybind11

2018-08-16 Thread Matti Picus
PyOpenCL allows one to write kernels for OpenCL in python and uses numpy arrays as the data to pass around. They now use cffi bindings, but are thinking of moving to PyBind11. https://lists.tiker.net/pipermail/pyopencl/2018-August/002395.html They claim 1500 less code lines and a 2x speedup (o

Re: [pypy-dev] PyOpenCL wants to move from cffi to pybind11

2018-08-16 Thread wlavrijsen
Matti, They claim 1500 less code lines and a 2x speedup (on cpython). I certainly believe the former, but am surprised by the latter. From some simple benchmarking, I've found PyBind11 to be very slow (as in 3x and up). Perhaps the problem is in the C wrappers more so than in cffi? On the ot