-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsh_final2.sh
26 lines (23 loc) · 936 Bytes
/
sh_final2.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
#!/bin/bash
#SBATCH --job-name=ser
#SBATCH --output=./logs_final/%A_%a.out
#SBATCH --error=./logs_final/%A_%a.err
#SBATCH -t 150:00:00 # walltime = 1 hours and 30 minutes
#SBATCH --mail-type=ALL
#SBATCH [email protected]
# Set the array variable based on the calculated array size
#SBATCH -N 1
#SBATCH -n 8 # 1 CPU core
#SBATCH --mem=240GB
#SBATCH --gres=gpu:a100:1
#SBATCH -x node[100-106,110]
#SBATCH -p gablab
#SBATCH --array=7-11
# Execute commands to run your program here. Here is an example of python.
eval "$(conda shell.bash hook)"
conda activate ser
let "min_seed = ($SLURM_ARRAY_TASK_ID - 1) * 10"
let "max_seed = ($SLURM_ARRAY_TASK_ID) * 10"
# Print the current task information
echo "Running run.py with min_seed = $min_seed and max_seed = $max_seed"
python run.py --experiment_file experiments_final/run.json --low_seed "$min_seed" --high_seed "$max_seed"