Mercurial > hg > cc > cirrus_home
view bin/atest3.sh @ 208:cbe631c26d53 default tip
both now working
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 11 Jun 2026 21:20:22 +0100 |
| parents | d9fea13d4220 |
| children |
line wrap: on
line source
#!/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
