Difference between revisions of "MPICH2"
From HCL
(New page: <code class="command">echo</code> "MPD_SECRETWORD=<code class="replace">secret</code>" > $HOME/.mpd.conf}} {{Term|location=frontend|cmd=<code class="command">chmod</code> 600 $HOME/.mpd.co...) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | Settings for MPICH2 daemon: |
− | + | <source lang="bash"> | |
+ | $ echo "MPD_SECRETWORD=XXX" > ~/.mpd.conf | ||
+ | $ chmod 600 ~/.mpd.conf | ||
+ | </source> | ||
− | + | Script for running application: | |
− | + | <source lang="bash"> | |
− | + | NODES=`uniq < $OAR_NODEFILE | wc -l | tr -d ' '` | |
− | + | NPROCS=`wc -l < $OAR_NODEFILE | tr -d ' '` | |
− | + | mpdboot --rsh=ssh --totalnum=$NODES --file=$OAR_NODEFILE | |
− | + | sleep 1 | |
+ | mpirun -n $NPROCS path_to_executable | ||
+ | </source> | ||
+ | |||
+ | In MPICH2, you normally don't need to specify -machinefile explicitly for Grid5000 (OAR machinefiles are automatically read) |
Latest revision as of 15:29, 22 June 2010
Settings for MPICH2 daemon:
$ echo "MPD_SECRETWORD=XXX" > ~/.mpd.conf
$ chmod 600 ~/.mpd.conf
Script for running application:
NODES=`uniq < $OAR_NODEFILE | wc -l | tr -d ' '`
NPROCS=`wc -l < $OAR_NODEFILE | tr -d ' '`
mpdboot --rsh=ssh --totalnum=$NODES --file=$OAR_NODEFILE
sleep 1
mpirun -n $NPROCS path_to_executable
In MPICH2, you normally don't need to specify -machinefile explicitly for Grid5000 (OAR machinefiles are automatically read)