view bin/cdx_segment.sh @ 195:5f3c36e4fd6d default tip

add target test-core which (dangerously) avoids (we hope pointless) recompilation of all the plugins
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 26 Sep 2024 17:55:56 +0100
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