annotate bin/stest.sh @ 128:ababa631a10f

more focussed, better SLURM_... vars
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 09 Jul 2021 13:45:04 +0000
parents 464d2dfb99c9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
88
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/bash
128
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
2 echo I am node "$SLURM_NODEID", cpu "$PMI_FD", task: "$SLURM_LOCALID", args "$@"
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
3 if [ $SLURM_LOCALID = 1 ]
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
4 then
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
5 echo Node $SLURM_NODEID input: $(cat stest_$SLURM_NODEID.txt)
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
6 if [ $SLURM_NODEID = 1 ]
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
7 then
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
8 lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
9 echo cpu: $PMI_FD
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
10 printenv
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
11 fi
ababa631a10f more focussed, better SLURM_... vars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 88
diff changeset
12 fi