comparison masterJob.sh @ 149:bb24f94fe592

better comments
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 25 Oct 2021 15:07:03 +0000
parents 0a447db5cf1c
children
comparison
equal deleted inserted replaced
148:f0bee28995f1 149:bb24f94fe592
1 #!/bin/bash 1 #!/bin/bash
2 # Attempt at a master Master job 2 # Attempt at a master Master job
3 # Usage: sbatch [--exclusive --nodes= --tasks-per-node= | -n ... -c ...] masterJob.sh taskName [args...] 3 # Usage: sbatch [--exclusive] [--nodes=|-N] [--ntasks-per-node=] [--cpus-per-task|-c] masterJob.sh jobName [args...]
4 # Note that --exclusive is _not_ set by default 4 # Note that --exclusive is _not_ set by default
5 # Use -n n -c c for to launch n 'parallel ...' jobs each of which spawns c actual workers which 5 # Use -N m -n n -c c for to launch n 'parallel ...' jobs on each of m nodes
6 # divide up the job task file task file (see below) between them. 6 # -c is redundant if --exclusive, otherwise gives
7 # Implies that ~/taskName_{0..n}.txt or ~/taskName/{0..n}.txt contain the necessary parameterisation 7 # an estimate of how many threads each task could benefit from
8 # Each job runs bin/taskName.sh and must use a job task file (see below)
9 # between its tasks.
10 # Implies that ~/jobName_{0..m}.txt or ~/jobName/{0..m}.txt
11 # contain the necessary parameterisation for each node
8 #SBATCH --time=01:00:00 12 #SBATCH --time=01:00:00
9 #SBATCH --partition=standard 13 #SBATCH --partition=standard
10 #SBATCH --qos=standard 14 #SBATCH --qos=standard
11 #SBATCH --account=ec184-guest 15 #SBATCH --account=ec184-guest
12 #SBATCH --job-name master 16 #SBATCH --job-name master