Mercurial > hg > cc > cirrus_home
view bin/cdx_segment.sh @ 140:0a447db5cf1c
move to ec164.guest
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 19 Oct 2021 12:55:30 +0000 |
parents | b6a5999d8e06 |
children |
line wrap: on
line source
#!/bin/bash # Invoke this as e.g. sbatch -n 30 -c 10 masterJob.sh cdx_segment # run cdx_segment.py in parallel n=$SLURM_NTASKS c=$SLURM_CPUS_PER_TASK node=$SLURMD_NODENAME local=$SLURM_LOCALID proc=$SLURM_PROCID echo $(date) $node:$proc start module load gnu-parallel PYTHONPATH=$PYTHONPATH:$HOME/lib/python parallel --will-cite -j $c lib/python/cdx_segment.py 2019-35 15 '{}' < cdx_segment/$proc.txt echo $(date) $proc end