Mercurial > hg > cc > cirrus_home
view bin/atest.sh @ 159:c3c3dd60b8a8
demo of slurm usage using cdx2tsv.py
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 06 Jul 2022 18:07:34 +0100 |
parents | 2fc33145242b |
children |
line wrap: on
line source
#!/bin/bash # Invoke this as e.g. sbatch -n 8 -c 5 masterJob.sh atest n=$SLURM_NODEID id=$SLURM_LOCALID #printenv | fgrep SLURM task=$SLURM_PROCID echo $(date) $(cat atest/$task.txt) start echo I am host $(hostname) node $n, cpu "$PMI_FD", local $id, task $task sleep 4 echo $(date) $(cat atest/$id.txt) end