#!/bin/bash
#SBATCH -A cis262533          # our class allocation (mybalance shows it)
#SBATCH -p shared             # share a node; we pay only for the cores we ask for
#SBATCH -J anvil_hello        # job name, shown by squeue
#SBATCH -N 1                  # 1 node
#SBATCH -n 1                  # 1 task (one process)
#SBATCH -c 8                  # 8 cores for that task
#SBATCH -t 00:05:00           # stop after 5 minutes at most
#SBATCH -o anvil_hello_%j.out # output file; %j becomes the job ID

# Everything below runs on a compute node, not the login node.
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK

echo "Job $SLURM_JOB_ID started $(date)"
./anvil_hello
echo "Job finished $(date)"
