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: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-11-24 11:46:15

On Nov 23, 2009, at 4:49 PM, Natarajan CS wrote:

> 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!

Correct. MPI_<datatype_name> is just a handle to an internal MPI data
structure. Its size (as reported by sizeof()) is unrelated to the
actual datatype size.

Jeff Squyres