[MPICH] Problem in Sending MPI_OFFSET_KIND
William Gropp
gropp at mcs.anl.gov
Mon Dec 12 10:54:24 CST 2005
At 08:22 AM 12/12/2005, Gaetano Bellanca wrote:
>Hi,
>
>I'm having problem in sending a variable of type MPI_OFFSET_KIND. I need
>to broadcast this variable, but MPI_BCAST does not work sending this
>variable as a MPI_OFFSET_KIND variable. I need to send it as a MPI_INTEGER.
>
>Is this correct?
Not quite. MPI_OFFSET_KIND is not an MPI Datatype, so you can't use it to
send an item of that type. When we implement MPI_SIZEOF and
MPI_TYPE_MATCH_SIZE, you can use those to get a matching MPI
datatype. Until then you'll need to find a datatype that is of the same
length as a variable that is declared as an integer of kind=MPI_OFFSET_KIND.
Bill
>The program is written in F90 and has the same behavior in the Linux and
>Windows version of MPICH2.
>
>
>Regards.
>
>Gaetano
>
>
>----------
>Gaetano Bellanca - Department of Engineering - University of Ferrara
>Via Saragat, 1 - 44100 - Ferrara - ITALY
>Voice: +39 0532 97.48.09 Fax: +39 0532 97.48.70
>mailto:gaetano.bellanca at unife.it
>
>----------
William Gropp
http://www.mcs.anl.gov/~gropp
More information about the mpich-discuss
mailing list