Mercurial > hg > cc > cirrus_home
diff bin/atest.sh @ 84:2fc33145242b
prepare for real parallel distribution
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 14 Mar 2021 21:28:02 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/atest.sh Sun Mar 14 21:28:02 2021 +0000 @@ -0,0 +1,11 @@ +#!/bin/bash +# Invoke this as e.g. sbatch -n 8 -c 5 masterJob.sh atest +n=$SLURM_NODEID +id=$SLURM_LOCALID +#printenv | fgrep SLURM +task=$SLURM_PROCID +echo $(date) $(cat atest/$task.txt) start +echo I am host $(hostname) node $n, cpu "$PMI_FD", local $id, task $task +sleep 4 +echo $(date) $(cat atest/$id.txt) end +