Skip to content

Instantly share code, notes, and snippets.

@dmentipl
Last active November 25, 2021 04:40
Show Gist options
  • Save dmentipl/5f05ddc02b5754ba3c938eb7e1e92de1 to your computer and use it in GitHub Desktop.
Save dmentipl/5f05ddc02b5754ba3c938eb7e1e92de1 to your computer and use it in GitHub Desktop.
Slurm job script for ozstar
#!/bin/bash
#SBATCH --nodes=1 --ntasks=1
#SBATCH --cpus-per-task=32
#SBATCH --job-name=twhya
#SBATCH --output=twhya01.swmout
#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=FAIL
#SBATCH --mail-type=END
#SBATCH [email protected]
#SBATCH --time=7-00:00:00
#SBATCH --mem=16G
INFILE='twhya.in'
echo "HOSTNAME = $HOSTNAME"
echo "HOSTTYPE = $HOSTTYPE"
echo Time is "$(date)"
echo Directory is "$(pwd)"
ulimit -s unlimited
export OMP_SCHEDULE="dynamic"
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export OMP_STACKSIZE=2048m
module load iccifort/2016.2.181-gcc-6.4.0
module load openmpi/3.0.0
module load hdf5/1.10.1
module list
echo "starting phantom run..."
OUTFILE=$(grep logfile $INFILE | tr -s ' ' | cut -d' ' -f4)
echo "writing output to $OUTFILE"
./phantom $INFILE >& "$OUTFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment