Hi Andreas, I think I found a small quirk when doing data copies involving rectangular subareas. Documentation of enqueue_copy states that the arguments buffer_pitches/host_pitches and src_/dst_pitches are optional, however an error is raised if they are omitted:
TypeError: _enqueue_read_buffer_rect(): incompatible function arguments. It seems pybind11 checks if the arguments are a sequence, but this fails with None as default value, as defined here: https://github.com/inducer/pyopencl/blob/1e850da761797c70aa0b2580845585c2401dd0a0/src/wrap_cl_part_1.cpp#L286-L287 I checked that replacing the default arguments by an empty tuple, replacing py::none() by py::tuple() resolves this issue. Also just filed an issue, https://github.com/inducer/pyopencl/issues/253 best Gregor _______________________________________________ PyOpenCL mailing list PyOpenCL@tiker.net https://lists.tiker.net/listinfo/pyopencl