pycuda icon indicating copy to clipboard operation
pycuda copied to clipboard

Migrate to pybind11

Open inducer opened this issue 2 years ago • 2 comments

Nothing works yet, very drafty.

inducer avatar Nov 06 '22 23:11 inducer

It might be worth looking at nanobind, which is by the same author, but is a newer version of the approach

jakirkham avatar Nov 21 '22 19:11 jakirkham

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.

inducer avatar Nov 21 '22 19:11 inducer