view masterJob.sh @ 148:f0bee28995f1

do the work for cdx2sql
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 25 Oct 2021 15:05:46 +0000
parents 0a447db5cf1c
children bb24f94fe592
line wrap: on
line source

#!/bin/bash
# Attempt at a master Master job
# Usage: sbatch [--exclusive --nodes= --tasks-per-node= | -n ... -c ...] masterJob.sh taskName [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
#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 "$@"