#!/bin/bash
# Usage: dotest

N=$SLURM_JOB_NUM_NODES
n=$SLURM_NTASKS
c=$SLURM_CPUS_PER_TASK
nodename=$SLURMD_NODENAME
local=$SLURM_LOCALID
node=$SLURM_NODEID

tPerN=$((n / N))

task=$((local + (node * tPerN)))


echo $(date) executing test on node $N:$nodename:$node task $n:$task:$SLURM_PROCID local:$local


