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
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