diff bin/runme.sh @ 167:3213a8bb2ed1

new style batch jobs, see cirrus_work repo for _xxx.sh
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 18 Jul 2022 19:16:20 +0100
parents
children bfe9085a1d39
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/runme.sh	Mon Jul 18 19:16:20 2022 +0100
@@ -0,0 +1,15 @@
+#!/usr/bin/bash
+# Invoke this as e.g. sbatch --ntasks=10 -c 20 runme.sh $PWD CMD ARGS
+# It will run on the login node
+
+#SBATCH --time=01:00:00
+#SBATCH --partition=standard
+#SBATCH --qos=standard
+#SBATCH --account=ec184-guest
+#SBATCH --job-name runme
+
+export W=/work/dc007/dc007
+
+echo $(date) Launching $SLURM_JOB_NUM_NODES nodes in $(pwd) for runme "$@" from $(hostname) to do $SLURM_NTASKS tasks, $SLURM_CPUS_PER_TASK cpus each 1>&2
+
+srun -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh "$@"
\ No newline at end of file