#!/bin/bash
#----------------------------------------------------
# Example SLURM job script to run hybrid applications
# (MPI/OpenMP or MPI/pthreads) on TACC's Stampede
# system.
#----------------------------------------------------
#SBATCH -J grhydro          # Job name
#SBATCH -o grhydro.o%j      # Name of stdout output file(%j expands to jobId)
#SBATCH -e grhydro.o%j       # Name of stderr output file(%j expands to jobId)
#SBATCH -p normal           # Submit to the 'normal' or 'development' queue
#SBATCH -N 1                # Total number of nodes requested (16 cores/node)
#SBATCH -n 2                # Total number of mpi tasks requested
#SBATCH -t 23:30:00         # Run time (hh:mm:ss) - 1.5 hours
# The next line is required if the user has more than one project
#SBATCH -A TG-MCA99S008  # Allocation name to charge job against

# This example will run a hybrid application using 16 threads

# Set the number of threads per task(Default=1)
export OMP_NUM_THREADS=8

# Run the hybrid application
ibrun ./cactus tov_2.par
