Re: Plans for next meeting

Peter Pacheco (peter@basil.usfca.edu)
Wed, 27 Sep 1995 20:37:33 -0700

Hello again,

I just can't leave this one alone . . . I'm not sure what you had
in mind for the displacements parameter. The current standard
says that (e.g.) MPI_Scatterv has the same effect as if there
were n calls to

MPI_Send(sendbuf + displacements[i]*extent(sendtype), sendcounts[i],
sendtype, i, . . . )

If sendtype were changed to an array, then the obvious generalization
would be

MPI_Send(sendbuf + displacements[i]*extent(sendtype[i]), sendcounts[i],
sendtype[i], i, . . . ),

but it probably won't make any sense to measure the displacements in terms of
extent(sendtype[i]). Sendtypes 0, 1, . . . , i-1 may not be expressible in
convenient multiples of the ith type. I expect the only thing that will
work here is bytes. That is, the effect of (the new and improved)
MPI_Scatterv is the same as if there were n calls to

MPI_Send( ((char*) sendbuf) + displacements[i], sendcounts[i],
sendtype[i], i, . . . )

Is this what you had in mind?

Regards,
Peter Pacheco
peter@usfca.edu