view bin/cdx_segment.sh @ 178:e1bc9d8d688c

ec184 now, run w. unbuffered output
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 05 Jul 2023 15:02:53 +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