#!/bin/sh # This runscript is used internally by simfactory as a template during the # sim setup and sim setup-silent commands # Edit at your own risk echo "Preparing:" set -x # Output commands set -e # Abort on errors cd @RUNDIR@-active echo "Checking:" pwd hostname date echo "Environment:" module load /home2/mallick/ET/Cactus/openmpi-x86_64 export CACTUS_NUM_PROCS=@NUM_PROCS@ export CACTUS_NUM_THREADS=@NUM_THREADS@ export GMON_OUT_PREFIX=gmon.out export OMP_NUM_THREADS=@NUM_THREADS@ env | sort > SIMFACTORY/ENVIRONMENT echo "Starting:" export CACTUS_STARTTIME=$(date +%s) #if [ ${CACTUS_NUM_PROCS} = 1 ]; then # if [ @RUNDEBUG@ -eq 0 ]; then # @EXECUTABLE@ -L 3 @PARFILE@ # else # gdb --args @EXECUTABLE@ -L 3 @PARFILE@ # fi #else mpirun -np @NUM_PROCS@ @EXECUTABLE@ -L 3 @PARFILE@ #fi #/opt/mpi/openmpi/1.6.2/intel/bin/mpirun -np @NUM_PROCS@ -x CACTUS_NUM_PROCS -x CACTUS_NUM_THREADS -x GMON_OUT_PREFIX -x OMP_NUM_THREADS -x OMP_STACKSIZE @EXECUTABLE@ -L 3 @PARFILE@ #time /opt/intel/impi/4.1.0.024/intel64/bin/mpiexec -n @NUM_PROCS@ -npernode @(@PPN_USED@ / @NUM_THREADS@)@ @EXECUTABLE@ -L 3 @PARFILE@ echo "Stopping:" date echo "Done."