-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmit_jobs.sh
33 lines (28 loc) · 1.01 KB
/
submit_jobs.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
#!/bin/bash
# Run it like this for file in Experiments/MMDDYYYY/*; do bash submit_jobs.sh $file; done
FILE_PATH=$1
CORES=$2
FILE_NAME=$(basename "$FILE_PATH" .py)
CURRENT_DATE=$(date +"%Y/%b/%d")
mkdir -p /cluster/tufts/levinlab/shansa01/SFC/jobs_logs/$CURRENT_DATE
sbatch << EOT
#!/bin/sh
#SBATCH -J "$FILE_NAME"
#SBATCH --time=07-00:00:00 #requested time (DD-HH:MM:SS)
#SBATCH -p gpu
#SBATCH -N 1
#SBATCH -n "$CORES"
#SBATCH --mem=32g
#SBATCH --output="/cluster/tufts/levinlab/shansa01/SFC/jobs_logs/$CURRENT_DATE/${FILE_NAME}.out"
#SBATCH --error="/cluster/tufts/levinlab/shansa01/SFC/jobs_logs/$CURRENT_DATE/${FILE_NAME}.err"
#SBATCH --mail-type=ALL
#SBATCH [email protected]
## commands to run
module load anaconda/2021.11
source activate mesamultineat
cd /cluster/tufts/levinlab/shansa01/SFC/ScaleFreeCognition
## Test 1
# No pos, No fit inputs
# for i in {1..20} # Commenting this out since now getting handled in the experiment config, so I can easily calculate stats
python "$FILE_PATH"
EOT