annotate bin/runme.sh @ 178:e1bc9d8d688c

ec184 now, run w. unbuffered output
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 05 Jul 2023 15:02:53 +0100
parents bfe9085a1d39
children 55169996c3bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
167
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/usr/bin/bash
174
bfe9085a1d39 change account back
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 167
diff changeset
2 # Invoke this as e.g. sbatch --ntasks=10 -c 20 runme.sh [args for work/bin/_runme.sh]
167
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 # It will run on the login node
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 #SBATCH --time=01:00:00
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 #SBATCH --partition=standard
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 #SBATCH --qos=standard
178
e1bc9d8d688c ec184 now, run w. unbuffered output
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 174
diff changeset
8 #SBATCH --account=ec184-hst
167
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 #SBATCH --job-name runme
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11 export W=/work/dc007/dc007
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13 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
3213a8bb2ed1 new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
14
178
e1bc9d8d688c ec184 now, run w. unbuffered output
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 174
diff changeset
15 srun --unbuffered -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh "$@"