File size: 865 Bytes
24aaa76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/bash
#SBATCH --job-name=rel2_build
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=8
#SBATCH --mem=48G
#SBATCH --time=04:00:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# RELEASE2 job C: build DATA/release/rc1_data (or OUT_DIR for a smoke test). Nothing is uploaded.
set -u
D=/path/to/TURKIC_OCR_DATA
OUT=${OUT_DIR:-$D/release/rc1_data}
echo "start $(date -u +%FT%TZ) host $(hostname) out $OUT args ${BUILD_ARGS:-none}"
/path/to/TURKIC_OCR_CODE/.venv_gen/bin/python -I /path/to/TURKIC_OCR_CODE/scripts/release2/rel2_build_data.py \
--decisions /path/to/TURKIC_OCR_CODE/scripts/release2/decisions.json --out $OUT --threads $SLURM_CPUS_PER_TASK ${BUILD_ARGS:-}
rc=$?
if [ $rc -eq 0 ]; then cd $OUT && sha256sum -c --quiet SHA256SUMS && echo "sha256sums_ok"; fi
echo "exit $rc end $(date -u +%FT%TZ)"
|