view masterJob.sh @ 157:cac9586291ad

no more gentoo, split out functions into .bash_extras
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 04 Jul 2022 18:14:41 +0100
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 "$@"