pycuda
pycuda copied to clipboard
Migrate to pybind11
Nothing works yet, very drafty.
It might be worth looking at nanobind, which is by the same author, but is a newer version of the approach
I'm aware of it, having evaluated it for pyopencl (https://github.com/inducer/pyopencl/pull/546). Migrating to pybind is a good stepping stone at any rate. For now, I appreciate that pybind is a more mature and more forgiving tool. And the rate demands of PyCUDA/PyOpenCL are not so great that the performance gains from nanobind materialize in real-world workloads, at least according to my measurements.