On Feb 19, 2009, at 8:24 PM, -Gim wrote:
> Query in MPI : What mpi_gather does is take the data being sent by
> the i th process and places it in i th location in the receive
> buffer. Say, I need to place the sent data in i*10 th location in
> the receive buffer? Is this possible at all or I have to use sent
> and recv ?
You could probably make an MPI datatype with an artificially high
MPI_UB; i.e., the datatype would be a single MPI_INT (or whatever type
it is that you're using) and then an MPI_UB that is sizeof(int)*10
higher than that. Then the root can MPI_Gather with that datatype.