comparison bin/atest.sh @ 84:2fc33145242b

prepare for real parallel distribution
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 14 Mar 2021 21:28:02 +0000
parents
children
comparison
equal deleted inserted replaced
83:8fb11e337e23 84:2fc33145242b
1 #!/bin/bash
2 # Invoke this as e.g. sbatch -n 8 -c 5 masterJob.sh atest
3 n=$SLURM_NODEID
4 id=$SLURM_LOCALID
5 #printenv | fgrep SLURM
6 task=$SLURM_PROCID
7 echo $(date) $(cat atest/$task.txt) start
8 echo I am host $(hostname) node $n, cpu "$PMI_FD", local $id, task $task
9 sleep 4
10 echo $(date) $(cat atest/$id.txt) end
11