Skip to content
Snippets Groups Projects
douar.run.p690 1.86 KiB
Newer Older
  • Learn to ignore specific revisions
  • Douglas Guptill's avatar
    Douglas Guptill committed
    #!/bin/sh
    #
    # run douar, on the p690
    #
    # Author: Douglas Guptill
    # 2009-05-25: new
    
    # 2009-08-03: add -eulib ip to poe
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    make_dir() {
      if ! test -d $1;  then mkdir $1; fi
    }
    
    
    if test $# -lt 1 ; then
      echo "Usage: $0 <number-of-processors>"
      exit
    fi
    
    PROCS=$1
    echo "Will use ${PROCS} processes."
    
    OUT=douar.out
    
    ERR=douar.err
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # For poe
    #
    # set NLSPATH.
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    if test  "x${NLSPATH}" = x ; then
      export NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
      echo "setting NLSPATH=${NLSPATH}"
    fi
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # The PGPLOT routines need this.
    
    # However Jean Braun has very kindly commented out the lines in douar
    # that call the routines that need pgplot.
    # export PGPLOT_DIR=/home/beaumnt1/software/pgplot-5.2.2
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    # For WSMP
    #
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # WSMP needs to know where its license file is.
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # However the export doesn't seem to work.  
    # export WSMPLICPATH=/home/beaumnt1/software/wsmp/wsmp.lic
    
    # So copy wsmp.lic to the running directory.
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    # For WSMP on AIX
    export SPINLOOPTIME=200
    export YIELDLOOPTIME=200
    export RT_GRQ=ON
    export AIXTHREAD_COND_DEBUG=OFF
    export AIXTHREAD_MUTEX_DEBUG=OFF
    
    # these cause trouble from LoadLeveler
    # export MP_EUILIB=us
    # export MP_EUIDEVICE=css0
    export MP_EUILIB=ip
    # ignored if LoadLeveler not being used.
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # export MP_EUIDEVICE=en0
    export MP_CSS_INTERRUPT=yes
    export MP_WAIT_MODE=nopoll
    export_MP_PULSE=0
    
    
    # douar needs some directories..
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    #
    
    make_dir DEBUG
    make_dir DEBUG/mpilogs
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    make_dir OUT
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # define the binary of douar
    
    BIN=/home/beaumnt1/software/douar/bin/douar-q64
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # Here is the run command
    
    COM="poe ${BIN} -procs ${PROCS} -hostfile ${HOME}/host.list -euilib ip"    
    
    echo "COM is <${COM}>"
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    # ulimits
    #
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    ulimit -d unlimited   >${OUT}
    
    ulimit -s 600000     >>${OUT}
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    ulimit -m unlimited  >>${OUT}
    ulimit -a            >>${OUT}
    
    # start douar and go away....
    #
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # nohup ${COM} &
    # echo "douar has been started.  Look in nohup.out ."
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    # start douar and watch it........
    #
    
    ${COM} 2>${ERR} | tee -a ${OUT} 
    
    Douglas Guptill's avatar
    Douglas Guptill committed