# HG changeset patch # User Henry S. Thompson # Date 1781114852 -3600 # Node ID d9fea13d42200e1900c597b19acf4bc5f9f06355 # Parent 4ccd8ad84e82c5b6c4940533385a45d1deafd7d2 prep for exercise 4 diff -r 4ccd8ad84e82 -r d9fea13d4220 bin/atest3.sh --- /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