Mercurial > hg > cc > cirrus_home
view masterJob.sh @ 150:4e1364b8c89a
working, with compound driver files
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 26 Oct 2021 14:05:35 +0000 |
parents | bb24f94fe592 |
children |
line wrap: on
line source
#!/bin/bash # Attempt at a master Master job # 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 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 #SBATCH --account=ec184-guest #SBATCH --job-name master export SBATCH_JOB_NAME="$1" cd ${SLURM_SUBMIT_DIR} bin/masterMaster.sh "$@"