Mercurial > hg > cc > cirrus_home
changeset 206:d9fea13d4220
prep for exercise 4
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 10 Jun 2026 19:07:32 +0100 |
| parents | 4ccd8ad84e82 |
| children | b4486b5df065 |
| files | bin/atest3.sh |
| diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/atest3.sh Wed Jun 10 19:07:32 2026 +0100 @@ -0,0 +1,16 @@ +#!/bin/bash +#SBATCH --time=00:01:00 +#SBATCH --partition=standard +#SBATCH --qos=standard +#SBATCH --account=ec276-hst +#SBATCH --job-name atest2 +# Usage: sbatch --output=xxx.out --time=00:02:00 --ntasks=1 --array=0-1 -c 3 $HOME/bin/atest3.sh N +# to do 2 groups of N cdx files +N=$1 +id="$SLURM_ARRAY_TASK_ID" +sleep $(($id * 2)) +echo "$(date)" starting on node "$SLURMD_NODENAME:$SLURM_NODEID", cpu "$SLURM_CPUS_ON_NODE", job $id, args "$@" + +/work/dc007/dc007/shared/bin/sing /work/dc007/dc007/hst/bin/_atest3.sh $id $N + +echo "$(date)" finished on node "$SLURMD_NODENAME:$SLURM_NODEID", cpu "$SLURM_CPUS_ON_NODE", job $id
