Difference between revisions of "MPICH2"

From HCL
Jump to: navigation, search
(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:
<code class="command">echo</code> "MPD_SECRETWORD=<code class="replace">secret</code>" > $HOME/.mpd.conf}}
+
Settings for MPICH2 daemon:
{{Term|location=frontend|cmd=<code class="command">chmod</code> 600 $HOME/.mpd.conf}}
+
<source lang="bash">
 +
$ echo "MPD_SECRETWORD=XXX" > ~/.mpd.conf
 +
$ chmod 600 ~/.mpd.conf
 +
</source>
  
Then you can use a script like this to launch mpd/mpirun:
+
Script for running application:
NODES=`uniq < $OAR_NODEFILE | wc -l | tr -d ' '`
+
<source lang="bash">
NPROCS=`wc -l < $OAR_NODEFILE | tr -d ' '`
+
NODES=`uniq < $OAR_NODEFILE | wc -l | tr -d ' '`
mpdboot --rsh=oarsh --totalnum=$NODES --file=$OAR_NODEFILE
+
NPROCS=`wc -l < $OAR_NODEFILE | tr -d ' '`
sleep 1
+
mpdboot --rsh=ssh --totalnum=$NODES --file=$OAR_NODEFILE
mpirun -n $NPROCS <code class="replace">mpich2binary</code>
+
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