La lecture en ligne est gratuite
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
Télécharger Lire

mpi-tutorial

155 pages
ratoTScienceutoArgonne,rialArgonnegropp@mcs.anl.govandMPI:IL60439ryMessage-PNationalassingDivisionInterfaceComputerWilliMathematicsam1GroppYRO• T UA NR I O V EB RA SL I T Y L A onTheLaboN O O F I T A C N H I C E A N G N O O •GRAused`advanced'uOutlinetutoMBackgroundthatonmaterialPrialatheralldetailedelMPIComputingthis2GettingnStaThisrtededconjunctionMPIbBasicswhichofIntermediateofMPIeingsTolCoursemaeading.therirstonrial.rtutowmaritingskipplibinawithrei\UsingesPI"containsFinaldescriptionscommentstheThankssetotheRustroutines.yMaterialLuskbfwithosymbrissandomeyofthisoolsfoybebookraoproPopaoprallelMPIComputing3erativeCommunicatingerationswithOne-sidedothererationspTheropcessescessBackgroundCocessesrmationyaprallelInteractComputinginforSeparoratewboexchangingP4ersorkinexampledierentypSPMD/MIMD.espofapacauseralleliscomputingracticalAllpuseSPMDdierentredatabTMIMDrSPMDeachequivalent,wlessoforkrilerrograms,Data-padatarallelandSameaopessentiallyerationssameinterface.edierentanydata.anAlsomadecalledSIMDSIMDalsoSPMDrSameapprogram,sense ...
Voir plus Voir moins

rato
T
Science
uto
Argonne,
rial
Argonne
gropp@mcs.anl.gov
and
MPI:
IL
60439
ry
Message-P
National
assing
Division
Interface
Computer
Willi
Mathematics
am
1
Gropp
Y
R
O


T


U
A



N
R


I

O
V


E
B



R
A



S
L



I


T





Y

L


A



on
The
Lab
o
N

O


O

F

I


T



A

C


N

H




I




C


E

A


N

G


N

O


O


G
R
Aused
`advanced'
u
Outline
tuto

M
Background
that
on
material
P
rial
a
the
rall
detailed
el
MPI
Computing
this

2
Getting
n
Sta
This
rted
ed

conjunction
MPI
b
Basics
which

of
Intermediate
of
MPI


eings
T
ol
Course
ma
eading.
the
r
i
rst
on

rial.
r
tuto
w
ma
riting
skipp
lib
in
a
with
r
e
i
\Using
es
PI"

contains
Final
descriptions
comments
the
Thanks
se
to
the
Rust
routines.
y
Material
Lusk
b
f
with
o
symb
r
is
s
and
ome
y
o
f
this
oo
l
s
f
o
yb
e
boo
k
raop



ro
P
op
a
op
rallel
MPI
Computing
3

erative
Communicating
erations
with
One-sided
other
erations
p
The
ro
p
cesses
cess

Background
Cocesses
rmation
y
a
p
rallel
Interact
Computing
info

r
Sepa
ro
rate

w
b
o
exchanging
P
4
ers
o
rkin
example
dierent
yp
SPMD/MIMD.
es
p
of
a
pa
cause
rallel
is
computing
ractical
All
p
use
SPMD
dierent
re
data
b
T
MIMD
r
SPMD
each
equivalent,
w
less
o
fo
rk
ril
er
rograms,
Data-pa
data
rallel
and
Same
a
op
essentially
erations
same
interface.
e
dierent
any
data.
an
Also
made
called
SIMD
SIMD
also
SPMD
r
Same
a
p
p
rogram,
sense.
dierent
y
data
rima
SIMD
5
Dierent
MIMD
on
the
be
but
of
is
HPF
is
MPI
can
MIMD
fo|
rties
rfo
with
data
other
rk
p
of
ro
to
cesses
One
Data
w
must
p
data
6
exchanged
transfer
with
agree
other
transfer
w

o
sided
rk
one
ers
o

er
Co
e
op
rms
erative
|
Communicating
be
pa
allAn
eceiver's
receiver's
op
with
erative
any
op
must
erations
the
Message-passing
made
is
is
an
in
app
7
roach
pa
that
r
mak
explicitl
Co
sent
the
received.
exchange
advantage
rticipation.
that
data
change
co
ry
op
memo
erative.
Data
y
es
bo
t
h
be
Process 0 Process 1
SEND( data )
RECV( data )
the
is
and
ofw
r
reads
op
can
erations
memo
One-sided
writes.
op
that
erations
accessed
One-sided
8
cess
another
w
and
ro
An
p
is
rallel
data
p
fo
ro
without
cesses
aiting
include
remote
advantage
be
t
een
ry
be
Process 0 Process 1
PUT( data )
(Memory)
Process 0 Process 1
(Memory)
GET( data )
pato?
re
d
Example
kno
T
o
ak
our
e
our
a
Questions
pad
from
o
step
f
c
p
alue.
ap
3.
er.
value.
Class
until
rithm:
Ho
Initiali
get
ze
our
with
2.
the
r
numb
t
er
rresp
of
v
neighb
done?
o
Ho
rs
re?
y
new
ou

have
eat

done
Compute
1.
average
ou
o
ou
f
values
y
y
our
neighb
neighb
ond
o
Which
r's
o
v
iteration
alues
o
and
hey
subtract
o
from
9
y
Rep
Algo
et
a
h
ty
wd
oy
Do
y
Do
y
wd
oy
ou
a
y
when
decide
ou
ca
ou
w?
rs?
Mak

Un pour Un
Permettre à tous d'accéder à la lecture
Pour chaque accès à la bibliothèque, YouScribe donne un accès à une personne dans le besoin