view bin/stest.sh @ 192:4275eb6484da

maybe triggers jdb on tests with -DdebugTest=true on command line
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 25 Sep 2024 13:51:15 +0100
parents ababa631a10f
children
line wrap: on
line source

#!/bin/bash
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