Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Q regarding MPI_SHORT and MPI_Isend
From: Natarajan CS (csnataraj_at_[hidden])
Date: 2009-11-23 16:49:17


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, Nov 23, 2009 at 2:33 PM, Edmund Sumbar <esumbar_at_[hidden]> wrote:

> On Mon, 23 Nov 2009, Natarajan CS wrote:
>
> [...]
>
> 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[0][0][0], (int) (sizeof(data2)/sizeof(MPI_SHORT)),
>> MPI_SHORT, rank, 123,
>> cartcomm,&request[rank-1]);
>>
>
> MPI_SHORT and the other data types are actually macros that resolve to
> MPI_Datatype which is a pointer to a struct.
>
> [...]
>
> --
> Edmund Sumbar
> AICT Research Support Group
> esumbar_at_[hidden]
> 780.492.9360
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>