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...) |
|||
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> |
Revision as of 09:05, 21 April 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