#!/usr/bin/sh
#SBATCH -A cis230083
#SBATCH -p wholenode
#SBATCH --nodes=16
#SBATCH --ntasks=2048
#SBATCH --ntasks-per-node=128
#SBATCH --time=00:01:00
#SBATCH --job-name rd-seqdec
## Validate partition (-p), and allocation (-A) above.
## sbatch ./seqdec.job
cd ~/Development/seqdec
# Set MT based on available cores per node.
make -f Makefile.gnumake MT=128 FAST=1
echo "$SLURM_JOB_NAME running on $SLURM_JOB_NODELIST"
time mpirun -np $SLURM_NTASKS ./order-up -d 200 -s 50 --num-time-periods=2500000 \
--purchase-cost=0.79 --sale-price=4.50 --theta-max-ceiling=900 --theta-min-ceiling=800
# TODO: Consider using `srun`