Mercurial > hg > cc > cirrus_home
annotate bin/stest.sh @ 195:5f3c36e4fd6d default tip
add target test-core which (dangerously) avoids (we hope pointless) recompilation of all the plugins
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Thu, 26 Sep 2024 17:55:56 +0100 |
parents | ababa631a10f |
children |
rev | line source |
---|---|
88 | 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 |