#!/bin/sh echo "Preparing:" set -x # Output commands set -e # Abort on errors cd @RUNDIR@ # # export GMON_OUT_PREFIX=gmon.out echo "Checking:" pwd hostname date cat ${PBS_NODEFILE} > SIMFACTORY/NODES echo "Environment:" export OMP_NUM_THREADS=@NUM_THREADS@ # for jobs with >128 MPI processes one may need to increase # the unexpected receive queue buffer size #export MPICH_UNEX_BUFFER_SIZE=40M export MPICH_UNEX_BUFFER_SIZE=100M # Setting this seems to make MPI hang #export MPICH_MAX_SHORT_MSG_SIZE=16000 export MPICH_PTL_UNEX_EVENTS=204800 # NAMD uses: #export MPICH_PTL_SEND_CREDITS=-1 #export MPICH_MAX_SHORT_MSG_SIZE=8000 #export MPICH_PTL_UNEX_EVENTS=80000 #export MPICH_UNEX_BUFFER_SIZE=100M export MPICH_ENV_DISPLAY=1 export MPICH_VERSION_DISPLAY=1 export MPICH_ABORT_ON_ERROR=1 env > SIMFACTORY/ENVIRONMENT cat > gdb.cmds <