-
Notifications
You must be signed in to change notification settings - Fork 1
/
slurm_abc.sbatch
37 lines (29 loc) · 1.18 KB
/
slurm_abc.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
#!/bin/bash
#SBATCH --job-name=abc-smc # 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=120G # Memory per node
#SBATCH --time=24:00:00 # Wall clock time limit hrs:min:sec
pwd; hostname; date
echo "Running MATLAB abc_smc script to get next set of particles."
echo "${USRNAME}"
export USRNAME
echo "${DIRPATH}"
export DIRPATH
echo "${TCURR}"
export TCURR
echo "${DATE}"
export DATE
echo "${NSETS}"
export NSETS
cd ${DIRPATH}
export TZ="America/Los_Angeles"
module load matlab_2018a
mkdir -p /gscratch/csde/${USRNAME}/$SLURM_JOB_ID
matlab -nodisplay -nosplash -r "abc_smc(${TCURR} , '${DATE}' , ${NSETS} , '${USRNAME}')"
rm -r /gscratch/csde/${USRNAME}/$SLURM_JOB_ID
date