Oh okay that explains the behaviour of MPI_SHORT, guess sizeof is going to give me the same value no matter what MPI_Datatype I use? Thanks for the quick response!
On Mon, 23 Nov 2009, Natarajan CS wrote:
[...]MPI_SHORT and the other data types are actually macros that resolve to MPI_Datatype which is a pointer to a struct.
1) When I use MPI_SHORT instead of short to count the number of data transferred I get an array that is half the size. (ie MPI_Isend(&data2, (int) (sizeof(data2)/sizeof(MPI_SHORT)), MPI_SHORT, rank, 123,
AICT Research Support Group
users mailing list