-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_growth_model.sh
More file actions
34 lines (30 loc) · 1.03 KB
/
run_growth_model.sh
File metadata and controls
34 lines (30 loc) · 1.03 KB
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
#!/bin/sh
# embedded options to bsub - start with #BSUB
### -- set the job Name --
#BSUB -J DP_500dGP
### –- specify queue --
#BSUB -q hpc
### -- ask for number of cores (default: 1) --
#BSUB -n 20
#BSUB -R "span[hosts=1]"
### -- set walltime limit: hh:mm --
#BSUB -W 48:00
### -- specify that we need 2GB of memory per core/slot --
#BSUB -R "rusage[mem=2GB]"
### -- Specify the output and error file. %J is the job-id --
### -- -o and -e mean append, -oo and -eo mean overwrite --
#BSUB -o DP_500dGP_%J.out
#BSUB -e DP_500dGP_%J.err
# load the necessary modules
# NOTE: this is just an example, check with the available modules
module load gcc
module load mpi/2.1.1-gcc-7.2.0
# Prevents `plt.show()` for attempting connecting.
unset DISPLAY XAUTHORITY
cd ~/mthesis
source activate lions2
source setup_env.sh
export OMP_NUM_THREADS=1
### This uses the LSB_DJOB_NUMPROC to assign all the cores reserved
### This is a very basic syntax. For more complex examples, see the documentation
mpirun -np $LSB_DJOB_NUMPROC python run_growth_model.py