-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.bash
23 lines (19 loc) · 866 Bytes
/
demo.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
#SBATCH -A NAISS2024-5-577 -p alvis
#SBATCH -N 1 --gpus-per-node=A100:1 # qui selezioni il tipo di gpu ed il numero
#SBATCH -t 0-00:30:00 # tempo di calcolo (massimo 167 ore == 7 giorni)
# Output files
#SBATCH --error=./MedCoDi-M/error/job_%J.err # file di error
#SBATCH --output=./MedCoDi-M/output/out_%J.out # file di output
#SBATCH --mail-type=END,FAIL
#SBATCH [email protected] # qui la tua mail
# Load modules
module load virtualenv/20.23.1-GCCcore-12.3.0 matplotlib/3.7.2-gfbf-2023a SciPy-bundle/2023.07-gfbf-2023a h5py/3.9.0-foss-2023a
# Activate venv
cd /mimer/NOBACKUP/groups/naiss2023-6-336/dmolino/venv_aggiornato
source bin/activate
# Executes the code (path alla tua directory)
cd /mimer/NOBACKUP/groups/naiss2023-6-336/dmolino/MedCoDi-M
# Train HERE YOU RUN YOUR PROGRAM
python3 demo_model.py
deactivate