changeset 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 3bc1d24363a1
children b51d65ed6c89
files bin/stest.sh
diffstat 1 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/bin/stest.sh	Tue Jun 29 08:00:40 2021 +0000
+++ b/bin/stest.sh	Fri Jul 09 13:45:04 2021 +0000
@@ -1,7 +1,12 @@
 #!/bin/bash
-pwd
-ls /dev/shm
-echo I am node "$SLURM_NODEID", cpu "$PMI_FD", args "$@"
-cat stest_$PMI_FD.txt
-
-
+echo I am node "$SLURM_NODEID", cpu "$PMI_FD", task: "$SLURM_LOCALID", args "$@"
+if [ $SLURM_LOCALID = 1 ]
+then
+  echo Node $SLURM_NODEID input: $(cat stest_$SLURM_NODEID.txt)
+  if [ $SLURM_NODEID = 1 ]
+  then
+    lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
+    echo cpu: $PMI_FD
+    printenv
+  fi
+fi