-
Notifications
You must be signed in to change notification settings - Fork 0
/
send_batch_GR_MNIST_fast.sh
34 lines (28 loc) · 1.27 KB
/
send_batch_GR_MNIST_fast.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
#!/bin/bash
#
# adapted from https://github.com/rug-cit-hpc/cluster_course/blob/master/advanced_course/1.7_jobarray/solution/jobscript.sh
#
# exec_parallel_cluster.sh provides the ability to run multiple simulation at once, by launching individual jobs on the RUG peregrine cluster.
# if you want to run only one simulation e.g for plotting directly call your script.
#
# the command line arguments are <python executable path> <exec home path> <python file to run>
# dont use relative pathes
# the script will span as many jobs on the cluster as iterations definded below
#
# standart for normal python
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
## please adapt the following to your need:
# from to (incl) range of iterations, max is 1000 total
#SBATCH --gpus-per-node=1
# memory requirement - check on your PC first if possible
#SBATCH --mem=50GB
# max execution time
#SBATCH --time=3-00:00:00
# choose subcluster (short: up to 30 min, regular: up to 10 days - 128GB RAM?, himem: up tp 10 days - 1TB RAM?)
# job name
#SBATCH --job-name=GR_MNIST
## Most importantly check your python script on pg-interactive.hpc.rug.nl first (with reduced load) if you environment works fine.
source spll_venv/bin/activate
cd tactile_encoding2
python3 GR_MNIST.py --shared_params --gpu --log --train --lr=$*