parallel / 2-2010
.pdfMPI
mpd.
. & mpd
( . %
.
. ( + 5) :
mpdboot –n 5
:
mpdtrace
* + )
&, + MPI
.
. & :
mpdallexit
MPI-2
&
.mpd.conf
! .mpd.conf
MPD_SECRETWORD=kalosha
MPD_PORT_RANGE=1003:10003
' mpd.hosts
!
.mpd.conf
pd00 ifhn=195.168.0.69 pd01 ifhn=192.168.0.74 pd02 ifhn=192.168.0.75
pd03 ifhn=192.168.0.76 pd04 ifhn=192.168.0.77 pd05
pd06
pd07
MPI-2
.
mpdboot –n _ [(]
.
mpiexec [(] –n _
. &
mpdallexit
C
MPI C
! ! MPI_,
.
!
#_ _ #_ . 1 ( MPI
Forttran. C++
, + (
MPI::#:: _ .
%
:
Create ;
Get ( ! ;
Set ;
Delete !;
Is , .
C
. ( &
( !. " MPI
. " (
! mpi.h, ( MPI-
. " + !
MPI. !
(, ( INOUT) — .
C
MPI ( ,
C Fortran (
).
Fortran
MPI ( MPI_. # & (
(
).
# & & MPI_SUCCESS.
# MPI ! mpi.h,
( MPI- )
include. / (
.
status
. *
:
integer status(MPI_STATUS_SIZE)
…
if(status(MPI_TAG).EQ.tag1) then
…
Fortran
Fortran MPI,
MPI_Datatype MPI_Comm (integer).
C (
! MPI, Fortran .
Fortran
