Changeset 2725 in /cluster/svnroot


Ignore:
Timestamp:
Oct 14, 2010 12:17:22 AM (10 years ago)
Author:
skylar
Message:

using temp file for machines to get around concurrency problems with login shell (#520)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-test_fw/trees/home/bccd/tests/mpitest.sh

    r2724 r2725  
    11#!/bin/bash
    2 
    3 set -x
    42
    53if test -z "$1"; then
     
    1210MPIS="mpich2 openmpi"
    1311DISPLAY=99
     12
     13# Don't want to be stepped on by login shells that rewrite
     14# this file regularly
     15MACHINESFILE=$(mktemp)
    1416
    1517echo "tmpdir is $TMPDIR"
     
    3638        module load modules ${MPI}
    3739
    38         bccd-snarfhosts
     40        bccd-snarfhosts ${MACHINESFILE}
    3941
    4042        cd ~/GalaxSee
     
    4446        make &> /dev/null && \
    4547        echo "  Syncing..." && \
    46         bccd-syncdir --ni ~/GalaxSee ~/machines &> /dev/null && \
     48        bccd-syncdir --ni ~/GalaxSee ${MACHINESFILE} &> /dev/null && \
    4749        echo "  Running..." && \
    4850            xvfb-run -n ${DISPLAY} -f ${HOME}/.Xauthority -l \
    49             mpirun ${HOSTCMD} ~/machines -np ${PROCS} ${HOST_X11_OPTS} \
     51            mpirun ${HOSTCMD} ${MACHINESFILE} -np ${PROCS} ${HOST_X11_OPTS} \
    5052            ${TMPDIR}/GalaxSee 100 100 1000
    5153       
     
    5658        make &> /dev/null && \
    5759        echo "  Syncing..." && \
    58         bccd-syncdir --ni ~/Life ~/machines &> /dev/null && \
     60        bccd-syncdir --ni ~/Life ${MACHINESFILE} &> /dev/null && \
    5961        echo "  Running..." && \
    6062            xvfb-run -n ${DISPLAY} -f ${HOME}/.Xauthority -l \
    61             mpirun ${HOSTCMD} ~/machines -np ${PROCS} ${HOST_X11_OPTS} \
     63            mpirun ${HOSTCMD} ${MACHINESFILE} -np ${PROCS} ${HOST_X11_OPTS} \
    6264            ${TMPDIR}/Life 50 50 100
    6365
     
    7173        echo "  Running..." && \
    7274            xvfb-run -n ${DISPLAY} -f ${HOME}/.Xauthority -l \
    73             mpirun ${HOSTCMD} ~/machines -np ${PROCS} ${HOST_X11_OPTS} \
     75            mpirun ${HOSTCMD} ${MACHINESFILE} -np ${PROCS} ${HOST_X11_OPTS} \
    7476            ${TMPDIR}/Param_space 100 100 100
    7577done
Note: See TracChangeset for help on using the changeset viewer.