[MPICH] const?

Rajeev Thakur thakur at mcs.anl.gov
Wed Jun 20 08:54:09 CDT 2007

The implementation is allowed to modify the buffer as long as it returns it
to its original state before MPI_Send returns. For example, the
implementation may reorder bytes in place for communication on heterogeneous


> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Nico Kruithof
> Sent: Wednesday, June 20, 2007 1:13 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] const?
> Hello,
> The prototype of MPI_Send is:
> int MPI_Send( void *buf, int count, MPI_Datatype datatype, int dest, 
>               int tag, MPI_Comm comm )
> Can anybody tell me why buf is not const? Can buf be changed during a
> send?
> Bests,
> Nico Kruithof

More information about the mpich-discuss mailing list