-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_job.sh
18 lines (18 loc) · 1.4 KB
/
run_job.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
### sbatch config parameters must start with #SBATCH and must precede any other command. to ignore just add another # - like ##SBATCH
#SBATCH --partition main ### specify partition name where to run a job. Any node: ‘main’; NVidia 2080: ‘rtx2080’; 1080: ‘gtx1080’
#SBATCH --time 0-24:00:00 ### limit the time of job running. Make sure it is not greater than the partition time limit (7 days)!! Format: D-H:MM:SS
#SBATCH --job-name bp_learning ### name of the job. replace my_job with your desired job name
#SBATCH --output bp_learning-id-%J.out ### output log for running job - %J is the job number variable
#SBATCH [email protected] ### user’s email for sending job status notifications
#SBATCH --mail-type=BEGIN,END,FAIL ### conditions for sending the email. ALL,BEGIN,END,FAIL, REQUEU, NONE
#SBATCH --gpus=1 ### number of GPUs (can't exceed 8 gpus for now) allocating more than 1 requires the IT team permission
### Print some data to output file ###
echo "SLURM_JOBID"=$SLURM_JOBID
echo "SLURM_JOB_NODELIST"=$SLURM_JOB_NODELIST
### Start your code below ####
module load anaconda ### load anaconda module
source activate bp_learning_env ### activate a conda environment, replace my_env with your conda environment
python ~/repos/BPLearning/train_automata_dataset.py 1.py
python ~/repos/BPLearning/train_automata_dataset.py 2.py
python ~/repos/BPLearning/train_automata_dataset.py 3.py