1 #! /bin/bash 2 3 echo "Preparing:" 4 set -x # Output commands 5 set -e # Abort on errors 6 7 cd /home/sb1554/ 8 9 echo "Checking:" 10 pwd 11 hostname 12 date 13 14 echo "Environment:" 15 export CACTUS_PATH=/home/sb1554/BNS 16 export CACTUS_NUM_PROCS=2 17 export CACTUS_NUM_THREADS=8 18 export GMON_OUT_PREFIX=gmon.out 19 export OMP_NUM_THREADS=8 20 export OMP_PLACES=cores # TODO: maybe use threads when smt is used? 21 # https://github.com/open-mpi/ompi/issues/4948 22 export OMPI_MCA_btl_vader_single_copy_mechanism=none 23 env | sort > /home/sb1554/BNS/simfactory/ENVIRONMENT 24 25 echo "Starting:" 26 export CACTUS_STARTTIME=$(date +%s) 27 #time srun -n ${CACTUS_NUM_PROCS} @EXECUTABLE@ -L 3 /home/sb1554/BNS/bns.par 28 time /home/sb1554/BNS/simfactory/bin/sim run bns --parfile /home/sb1554/BNS/bns. par --machine slurmbns 29 #time srun @EXECUTABLE@ -L 3 /home/sb1554/BNS/bns.par 30 echo "Stopping:" 31 date 32 33 echo "Done."