kamping-site / kamping

KaMPIng: (Near) zero-overhead MPI wrapper for modern C++
https://kamping-site.github.io/kamping/
GNU Lesser General Public License v3.0
27 stars 0 forks source link

Send/Recv Types and Resizing Buffers #565

Closed mschimek closed 11 months ago

mschimek commented 1 year ago

…es and how the recv_displs problem of _v collectivs could be fixed

During my work on enabling user provided mpi typesin kamping (starting with alltoall and alltoallv) I've encounter some problems related to resizing the recv buffer.

The work in this PR is not finished yet but I feel that we should discuss the itopic first, as most of the issues are somewhat dependent on each other.

Currently, I feel that a "clean" solution could be to provide to factory functions:

Maybe one I think we should even reverse the defaults and use recv_buf and ref_buf_resizable.