Changeset 2298 in /cluster/svnroot


Ignore:
Timestamp:
Mar 31, 2010 4:21:25 PM (11 years ago)
Author:
fitz
Message:

minor bug fixes and improvements in mpitest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/trees/home/bccd/tests/mpitest.sh

    r2162 r2298  
    22
    33PROCS=2
    4 UNIQFILE=/etc/ssh/ssh_host_dsa_key.pub
    5 TMPDIR=/tmp/`md5sum $UNIQFILE | cut -c -8`
     4TMPDIR=/tmp/`hostname -s`-$LOGNAME
     5MPIS="mpich2 openmpi"
     6DISPLAY=1
    67
    78echo "tmpdir is $TMPDIR"
    89
    910. /usr/local/Modules/3.2.6/init/bash
    10 module unload mpich2
    11 module unload openmpi
     11module unload $MPIS
    1212. ~/.bash_profile
    1313
    14 for i in mpich2 openmpi; do
     14
     15for i in $MPIS; do
    1516        if [ "$i" == "openmpi" ]; then
    1617                HOSTCMD="--hostfile"
     
    2324        echo "Testing $i"
    2425
    25         module unload mpich2
    26         module unload openmpi
     26        module unload $MPIS
    2727        module load $i
    2828
     
    3737        bccd-syncdir --ni ~/Gal ~/machines &> /dev/null && \
    3838        echo "  Running..." && \
    39         runmpi $HOSTCMD ~/machines -np $PROCS $TMPDIR/GalaxSee 100 100 1000 1
     39        runmpi $HOSTCMD ~/machines -np $PROCS $TMPDIR/GalaxSee 100 100 1000 $DISPLAY
    4040
    4141        cd ~/Life
     
    4747        bccd-syncdir --ni ~/Life ~/machines &> /dev/null && \
    4848        echo "  Running..." && \
    49         runmpi $HOSTCMD ~/machines -np $PROCS $TMPDIR/Life 50 50 100 1
     49        runmpi $HOSTCMD ~/machines -np $PROCS $TMPDIR/Life 50 50 100 $DISPLAY
    5050
    5151        cd ~/Param_space
     
    5757        bccd-syncdir --ni ~/Param_space ~/machines &> /dev/null && \
    5858        echo "  Running..." && \
    59         runmpi $HOSTCMD ~/machines -np $PROCS $TMPDIR/Param_space 100 100 100 1
     59        runmpi $HOSTCMD ~/machines -np $PROCS $TMPDIR/Param_space 100 100 100 $DISPLAY
    6060done
    6161
Note: See TracChangeset for help on using the changeset viewer.