Changeset 2724 in /cluster/svnroot


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

xvfb-run added (#520)

File:
1 edited

Legend:

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

    r2723 r2724  
    11#!/bin/bash
     2
     3set -x
    24
    35if test -z "$1"; then
     
    911TMPDIR=/tmp/$(hostname -s)-$LOGNAME
    1012MPIS="mpich2 openmpi"
    11 DISPLAY=1
     13DISPLAY=99
    1214
    1315echo "tmpdir is $TMPDIR"
     
    2123        if [ "${MPI}" == "openmpi" ]; then
    2224                HOSTCMD="--hostfile"
     25                HOST_X11_OPT="-x DISPLAY=$(hostname -s):${DISPLAY}.0"
    2326        elif [ "${MPI}" == "mpich2" ]; then
    2427                HOSTCMD="-machinefile"
     28                HOST_X11_OPT="-genv DISPLAY $(hostname -s):${DISPLAY}.0"
    2529        else
    2630                HOSTCMD=""
     
    4246        bccd-syncdir --ni ~/GalaxSee ~/machines &> /dev/null && \
    4347        echo "  Running..." && \
    44         runmpi ${HOSTCMD} ~/machines -np ${PROCS} \
    45             ${TMPDIR}/GalaxSee 100 100 1000 ${DISPLAY}
    46 
     48            xvfb-run -n ${DISPLAY} -f ${HOME}/.Xauthority -l \
     49            mpirun ${HOSTCMD} ~/machines -np ${PROCS} ${HOST_X11_OPTS} \
     50            ${TMPDIR}/GalaxSee 100 100 1000
     51       
    4752        cd ~/Life
    4853        echo "Life"
     
    5358        bccd-syncdir --ni ~/Life ~/machines &> /dev/null && \
    5459        echo "  Running..." && \
    55         runmpi ${HOSTCMD} ~/machines -np ${PROCS} \
    56             ${TMPDIR}/Life 50 50 100 ${DISPLAY}
     60            xvfb-run -n ${DISPLAY} -f ${HOME}/.Xauthority -l \
     61            mpirun ${HOSTCMD} ~/machines -np ${PROCS} ${HOST_X11_OPTS} \
     62            ${TMPDIR}/Life 50 50 100
    5763
    5864        cd ~/Param_space
     
    6470        bccd-syncdir --ni ~/Param_space ~/machines &> /dev/null && \
    6571        echo "  Running..." && \
    66         runmpi ${HOSTCMD} ~/machines -np ${PROCS} \
    67             ${TMPDIR}/Param_space 100 100 100 ${DISPLAY}
     72            xvfb-run -n ${DISPLAY} -f ${HOME}/.Xauthority -l \
     73            mpirun ${HOSTCMD} ~/machines -np ${PROCS} ${HOST_X11_OPTS} \
     74            ${TMPDIR}/Param_space 100 100 100
    6875done
    6976
Note: See TracChangeset for help on using the changeset viewer.