Mercurial > hg > cc > cirrus_home
annotate masterJob.sh @ 196:436c976ed27f
try to get -m working properly
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Tue, 22 Apr 2025 14:32:50 +0100 |
| parents | bb24f94fe592 |
| children |
| rev | line source |
|---|---|
| 21 | 1 #!/bin/bash |
| 2 # Attempt at a master Master job | |
| 149 | 3 # Usage: sbatch [--exclusive] [--nodes=|-N] [--ntasks-per-node=] [--cpus-per-task|-c] masterJob.sh jobName [args...] |
|
84
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 |
| 149 | 5 # Use -N m -n n -c c for to launch n 'parallel ...' jobs on each of m nodes |
| 6 # -c is redundant if --exclusive, otherwise gives | |
| 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 | |
| 85 | 12 #SBATCH --time=01:00:00 |
| 82 | 13 #SBATCH --partition=standard |
|
84
2fc33145242b
prepare for real parallel distribution
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
82
diff
changeset
|
14 #SBATCH --qos=standard |
| 140 | 15 #SBATCH --account=ec184-guest |
| 85 | 16 #SBATCH --job-name master |
| 17 | |
| 18 export SBATCH_JOB_NAME="$1" | |
| 21 | 19 |
| 82 | 20 cd ${SLURM_SUBMIT_DIR} |
| 21 | 21 |
| 82 | 22 bin/masterMaster.sh "$@" |
| 23 |
