#!/bin/bash # Launch the full EHD model across nodes: 5 folds as a SLURM array (1 fold/node), # then a dependent reduce job that finalises and writes the JSON. # All extra args are forwarded IDENTICALLY to both stages (e.g. --out, --part-dir, # --subsample). Usage: # src/launch_ehd_full.sh --out outputs/downscale/ehd_full.json \ # --part-dir outputs/downscale/fold_parts set -e cd /home/tanpv/Progs/claude/HW_EC_10 AID=$(sbatch --parsable src/run_ehd_fold.sh "$@") echo "array job: $AID (folds 0-4)" RID=$(sbatch --parsable --dependency=afterok:$AID src/run_ehd_reduce.sh "$@") echo "reduce job: $RID (runs after array succeeds)"