Mercurial > hg > cc > cirrus_home
view bin/test.sh @ 148:f0bee28995f1
do the work for cdx2sql
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 25 Oct 2021 15:05:46 +0000 |
| parents | 11d973ecff4e |
| children | 3213a8bb2ed1 |
line wrap: on
line source
#!/usr/bin/bash # Invoke this as e.g. sbatch --time=00:05:00 [--exclusive] -N 2 --ntasks-per-node 2 -c 2 masterJob.sh test # run doTest.sh in parallel on 2 nodes, 2 tasks each, with input from test/n.t.txt n=$SLURM_NTASKS c=$SLURM_CPUS_PER_TASK nodename=$SLURMD_NODENAME task=$SLURM_LOCALID node=$SLURM_NODEID echo $(date) $nodename:$node:$task start #type parallel #module load gnu-parallel export PYTHONPATH=$PYTHONPATH:$HOME/lib/python parallel --will-cite -j $c dotest.sh $node $task '{}' < test.$node.$task.txt echo $(date) $nodename:$node:$task end
