-
Notifications
You must be signed in to change notification settings - Fork 0
/
big_run.slurm
66 lines (37 loc) · 1.55 KB
/
big_run.slurm
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
## Job Name
#SBATCH --job-name=big_run3.3
## Allocation Definition
## On mox and ikt, the account and partition options should be the same.
#SBATCH --account=astro
#SBATCH --partition=astro
## Resources
## Nodes
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=28
## Walltime (hours:min:sec) Do not specify a walltime substantially more than your job needs.
#SBATCH --time=36:00:00
## Memory per node. It is important to specify the memory since the default memory is very small.
## For mox, --mem may be more than 100G depending on the memory of your nodes.
## For ikt, --mem may be 58G or more depending on the memory of your nodes.
## See above section on "Specifying memory" for choices for --mem.
#SBATCH --mem=500G
## Specify the working directory for this job
#SBATCH --chdir=/gscratch/scrubbed/yoachim/sims_featureScheduler_runs3.3
##turn on e-mail notification
#SBATCH --mail-type=ALL
#SBATCH [email protected]
## export all your environment variables to the batch job session
#SBATCH --export=all
## Set up the evironment
source ~/anaconda3/etc/profile.d/conda.sh
conda activate guro
export OPENBLAS_NUM_THREADS=1
cd /gscratch/scrubbed/yoachim/sims_featureScheduler_runs3.3
## run all the baseline commands in parallel
module load parallel-20170722
# Need to activate for each I guess
cat big_run.sh | xargs -I'{}' echo "cd /gscratch/scrubbed/yoachim/sims_featureScheduler_runs3.3 ; source setup_env ; {}" > final.sh
scontrol show hostnames > list_of_nodes
cpu_count=28
cat final.sh | parallel --sshloginfile list_of_nodes -j $cpu_count