comparison bin/_test.sh @ 2:b4801f5696b2

compute node workers, see cirrus_home/bin repo for login node masters
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 18 Jul 2022 19:22:42 +0100
parents
children 4e1ecfa46bee
comparison
equal deleted inserted replaced
1:d5b6748f29a9 2:b4801f5696b2
1 #!/bin/bash
2 # Usage: dotest
3
4 N=$SLURM_JOB_NUM_NODES
5 n=$SLURM_NTASKS
6 c=$SLURM_CPUS_PER_TASK
7 nodename=$SLURMD_NODENAME
8 local=$SLURM_LOCALID
9 node=$SLURM_NODEID
10
11 tPerN=$((n / N))
12
13 task=$((local + (node * tPerN)))
14
15
16 echo $(date) executing test on node $N:$nodename:$node task $n:$task:$SLURM_PROCID local:$local
17
18