[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [mpi-21] Proposal EH2: add const keyword to the C bindings



Erez Haba wrote:
This issue is related to the "send buffer access". I say "wait, let's make it right for the users by restricting the implementers".

I agree with Erez, common sense is that a send is a read-only operation. Furthermore, the implementer's interest in not respecting this common sense is not obvious at all, an extra copy is a reasonable overhead when supporting heterogeneous configurations.


I am not fond of adding const to the C bindings as it could introduce portability issues regarding compilers. I would prefer to simply change the standard to allow overlapping sends and read access to send buffers.

Patrick