From: Hubert Ritzdorf Date: January 23, 2008 12:00:55 PM CST To: mpi-21@XXXXXXXXXXXXX Subject: Re: [mpi-21] Proposal EH2 & MPI_INPLACE Reply-To: mpi-21@XXXXXXXXXXXXX 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