-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatch_ibs.sh
45 lines (34 loc) · 917 Bytes
/
batch_ibs.sh
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
38
39
40
41
42
43
44
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --array=1-120
#SBATCH --cpus-per-task=1
#SBATCH --time=48:00:00
#SBATCH --mem=6GB
#SBATCH --job-name=ibs
#SBATCH --mail-type=END
#SBATCH --output=ibs_%j.out
PROJECT_FOLDER="ibs-dev"
#model=psycho
#model=vstm
model=fourinarow
proc_id=${SLURM_ARRAY_TASK_ID}
#method=ibs
method=fixed
#method=fixed
#method=fixedb
#method=exact
Nsamples=100
if [ $method = "exact" ]; then
workdir=$SCRATCH/${PROJECT_FOLDER}/results/${model}/${method}
else
workdir=$SCRATCH/${PROJECT_FOLDER}/results/${model}/${method}${Nsamples}
fi
module purge
module load matlab/2018a
mkdir $SCRATCH/${PROJECT_FOLDER}/results
mkdir $SCRATCH/${PROJECT_FOLDER}/results/${model}
mkdir $workdir
cd $workdir
echo $model $method $Nsamples $proc_id
echo "addpath('$SCRATCH/${PROJECT_FOLDER}/matlab/'); recover_theta('${model}','${method}',${proc_id},${Nsamples}); exit;" | matlab -nodisplay
echo "Done"