-
Notifications
You must be signed in to change notification settings - Fork 1
/
slurm_runMultFutSims.sbatch
37 lines (29 loc) · 1.15 KB
/
slurm_runMultFutSims.sbatch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#SBATCH --job-name=future # Job name
#SBATCH --mail-type=FAIL # Turn on e-mail notification (NONE,BEGIN,END,FAIL,ALL)
#SBATCH --export=all # Export environment variables to the batch job session
#SBATCH --account=csde-ckpt # Allocation Definition
#SBATCH --partition=ckpt
#SBATCH --nodes=1 # Node resources
#SBATCH --ntasks-per-node=28 # CPUs per node
#SBATCH --mem=185G # Memory per node
#SBATCH --time=12:00:00 # Wall clock time limit hrs:min:sec
pwd; hostname; date #--qos=MaxJobs4
echo "Running MATLAB script for future sims in parallel with calibrated parameter sets"
echo "${USRNAME}"
export USRNAME
echo "${DIRPATH}"
export DIRPATH
echo "${SETIDX}"
export SETIDX
echo "${TCURR}"
export TCURR
echo "${DATE}"
export DATE
cd ${DIRPATH}
export TZ="America/Los_Angeles"
module load matlab_2018a
mkdir -p /gscratch/csde/${USRNAME}/$SLURM_JOB_ID
matlab -nodisplay -nosplash -r "calib2_runMultFutSims(${SETIDX} , ${TCURR} , '${DATE}' , '${USRNAME}')"
rm -r /gscratch/csde/${USRNAME}/$SLURM_JOB_ID
date