Mercurial > hg > cc > cirrus_home
annotate masterJob.sh @ 129:b51d65ed6c89
improve error handling
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Fri, 09 Jul 2021 13:45:43 +0000 |
parents | e5d5958bf3fe |
children | 0a447db5cf1c |
rev | line source |
---|---|
21 | 1 #!/bin/bash |
2 # Attempt at a master Master job | |
84
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
3 # Usage: sbatch [--exclusive --nodes= --tasks-per-node= | -n ... -c ...] masterJob.sh taskName [args...] |
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
4 # Note that --exclusive is _not_ set by default |
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
5 # Use -n n -c c for to launch n 'parallel ...' jobs each of which spawns c actual workers which |
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
6 # divide up the job task file task file (see below) between them. |
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
7 # Implies that ~/taskName_{0..n}.txt or ~/taskName/{0..n}.txt contain the necessary parameterisation |
85 | 8 #SBATCH --time=01:00:00 |
82 | 9 #SBATCH --partition=standard |
84
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
10 #SBATCH --qos=standard |
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
11 #SBATCH --account=dc007 |
85 | 12 #SBATCH --job-name master |
13 | |
14 export SBATCH_JOB_NAME="$1" | |
21 | 15 |
82 | 16 cd ${SLURM_SUBMIT_DIR} |
21 | 17 |
82 | 18 bin/masterMaster.sh "$@" |
19 |