[MPICH] about fortran and MPI_Send

Rajeev Thakur thakur at mcs.anl.gov
Fri Oct 21 12:35:32 CDT 2005


You can create a derived datatype and send them with a single send. If the
arrays are of the same type, you can use MPI_Type_hindexed; otherwise you
can use MPI_Type_struct.

Rajeev


> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of llwaeva at 21cn.com
> Sent: Friday, October 21, 2005 12:22 PM
> To: mpich
> Subject: [MPICH] about fortran and MPI_Send
> 
> Hi there,
>   I know nothing about fortran but one of my friends ask me to
> parallelize his fortran code. He got three arrays which need 
> to be sent
> to other process. I wonder besides using Pack and UnPack, is there any
> other way to send all three array once ?
> 
> Thanks in advance.
> 
> 




More information about the mpich-discuss mailing list