diff masterJob.sh @ 82:6304d5c46229

trying to move to slurm
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 03 Mar 2021 19:33:56 +0000
parents 03abcdce54a0
children 2fc33145242b
line wrap: on
line diff
--- a/masterJob.sh	Sat May 09 16:16:28 2020 +0100
+++ b/masterJob.sh	Wed Mar 03 19:33:56 2021 +0000
@@ -1,17 +1,20 @@
 #!/bin/bash
 # Attempt at a master Master job
-# Usage: qsub -v t=taskName[, x=extras] masterJob.sh
+# Usage: sbatch [--nodes=n] [--tasks-per-node=n] masterJob.sh taskName [args...]
 # Implies that ~/taskName_{0,1}.txt contain the necessary parameterisation
-#PBS -l select=2:ncpus=36
-#PBS -l place=exclhost
-#PBS -l walltime=48:00:00
-#PBS -V
-#PBS -A dc007
-#PBS -N master
-#
-#module load mpt
+#SBATCH --nodes=2
+#SBATCH --exclusive
+#SBATCH --tasks-per-node 36
+#SBATCH --cpus-per-task 1
+#SBATCH --time=00:01:00
+#SBATCH --partition=standard
+#SBATCH --qos=short
+#SBATCH --account=ec166-guest
+#SBATCH --job-name stest
 
-cd ${PBS_O_WORKDIR}
+cd ${SLURM_SUBMIT_DIR}
 
-bin/masterMaster.sh "$t" $x
+module load gnu-parallel
 
+bin/masterMaster.sh "$@"
+