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

Re: [mpi-21] Proposal EH2 & MPI_INPLACE



Please take a look to this... Hubert's usage of aliased buffer
arguments seems to have some issues...

http://www.mpi-forum.org/docs/mpi-20-html/node7.htm


On 1/23/08, Hubert Ritzdorf <ritzdorf@xxxxxxxxxxxx> wrote:
>
>
> Erez Haba wrote:
> > Using the send buffer pointer?
> >
> > Can you give an example?
> >
> >
> If you define 2 derived datatypes send_type and recv_type, which don't
> overlap,  you can execute for example MPI_Gather in the following way
>
> {
>     int buf[1000];
>
>      MPI_Gather (buf, 1, send_type, buf, 1, recv_type, 0, MPI_COMM_WORLD);
>
>    ....
>
> }
>
> In this case buf is send and recv buffer of MPI_Gather and
> buf is IN and OUT argument of MPI_Gather in root process 0.
>
>
> Hubert
>
>


-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594