# HG changeset patch # User Henry S. Thompson # Date 1625838304 0 # Node ID ababa631a10f6bc72f1eb54ee9842cc0f7171e69 # Parent 3bc1d24363a1848b39dea943d8dfe87acc931af7 more focussed, better SLURM_... vars diff -r 3bc1d24363a1 -r ababa631a10f bin/stest.sh --- 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