-
Notifications
You must be signed in to change notification settings - Fork 0
/
2019.bash
29 lines (22 loc) · 989 Bytes
/
2019.bash
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
#!/bin/sh
#BSUB -q hpc # Specify the queue you want your job to be run in (-q flag). Notice that different queues have different defaults, and access to specific queue can be restricted to specific groups of users.
#BSUB -J validation_2019 # name of job
#BSUB -n 12 # total number of cores (processors)
#BSUB -R "span[hosts=1]" # hosts=1 -> all cores must be on one single host, therefore it is not possible to request more cores than the number of physical cores present on a machine.
#BSUB -W 20:00 # Maximum runtime of job
#BSUB -u [email protected]
#BSUB -R "rusage[mem=16GB]" # Memory per core
#BSUB -B
#BSUB -N
#BSUB -o Output_%J.out
#BSUB -e Error_%J.err
echo "Start"
source /zhome/84/b/160280/miniconda3/etc/profile.d/conda.sh # activate conda and the virtual
conda activate pypsa-eur
echo "Active environment: "
echo $CONDA_DEFAULT_ENV
module load gurobi/10.0.0
pwd
echo "Start python script"
python main_2019.py
echo "End"