view masterJob.sh @ 183:efaa10c1e9ea

MANPATH (?)
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 08 Sep 2023 21:42:55 +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 "$@"