# HG changeset patch # User Henry S. Thompson # Date 1635174423 0 # Node ID bb24f94fe592ed51fbd7948f6726783a75ffbb75 # Parent f0bee28995f162b88694f512f815ffbd2aa353eb better comments diff -r f0bee28995f1 -r bb24f94fe592 masterJob.sh --- a/masterJob.sh Mon Oct 25 15:05:46 2021 +0000 +++ b/masterJob.sh Mon Oct 25 15:07:03 2021 +0000 @@ -1,10 +1,14 @@ #!/bin/bash # Attempt at a master Master job -# Usage: sbatch [--exclusive --nodes= --tasks-per-node= | -n ... -c ...] masterJob.sh taskName [args...] +# Usage: sbatch [--exclusive] [--nodes=|-N] [--ntasks-per-node=] [--cpus-per-task|-c] masterJob.sh jobName [args...] # Note that --exclusive is _not_ set by default -# Use -n n -c c for to launch n 'parallel ...' jobs each of which spawns c actual workers which -# divide up the job task file task file (see below) between them. -# Implies that ~/taskName_{0..n}.txt or ~/taskName/{0..n}.txt contain the necessary parameterisation +# Use -N m -n n -c c for to launch n 'parallel ...' jobs on each of m nodes +# -c is redundant if --exclusive, otherwise gives +# an estimate of how many threads each task could benefit from +# Each job runs bin/taskName.sh and must use a job task file (see below) +# between its tasks. +# Implies that ~/jobName_{0..m}.txt or ~/jobName/{0..m}.txt +# contain the necessary parameterisation for each node #SBATCH --time=01:00:00 #SBATCH --partition=standard #SBATCH --qos=standard