Mercurial > hg > cc > cirrus_home
annotate bin/cdx_segment.sh @ 112:bcea0410143c
(none)
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 26 Apr 2021 17:17:38 +0000 |
| parents | b6a5999d8e06 |
| children |
| rev | line source |
|---|---|
| 86 | 1 #!/bin/bash |
| 2 # Invoke this as e.g. sbatch -n 30 -c 10 masterJob.sh cdx_segment | |
| 3 # run cdx_segment.py in parallel | |
| 4 n=$SLURM_NTASKS | |
| 5 c=$SLURM_CPUS_PER_TASK | |
| 6 node=$SLURMD_NODENAME | |
| 7 local=$SLURM_LOCALID | |
| 8 proc=$SLURM_PROCID | |
|
87
b6a5999d8e06
working with locking and copying
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
86
diff
changeset
|
9 echo $(date) $node:$proc start |
| 86 | 10 |
| 11 module load gnu-parallel | |
| 12 | |
|
87
b6a5999d8e06
working with locking and copying
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
86
diff
changeset
|
13 PYTHONPATH=$PYTHONPATH:$HOME/lib/python |
| 86 | 14 parallel --will-cite -j $c lib/python/cdx_segment.py 2019-35 15 '{}' < cdx_segment/$proc.txt |
| 15 | |
| 16 echo $(date) $proc end | |
| 17 |
