#!/bin/sh
# PREREG-v3 full run: v3 and V2-DJ x 5 seeds x tiers 3K,10K,30K, normal and shuffled-within-sentence, in parallel.
set -e
cd "$(dirname "$0")"
gcc -O2 -Wall -Wno-unused-function -o jt jt.c -lm 2>/dev/null
out=results-v3/$(date +%s)
mkdir -p "$out"
git rev-parse HEAD > "$out/commit.txt"
sha256sum jt.c ../across-cluster/ac.c > "$out/src.sha256"
for s in 1 2 3 4 5; do
./jt $s --v3 > "$out/v3-seed-$s.tsv" &
./jt $s --v3 --shuffle > "$out/v3-shuf-$s.tsv" &
./jt $s --v2 dj > "$out/dj-seed-$s.tsv" &
./jt $s --v2 dj --shuffle > "$out/dj-shuf-$s.tsv" &
done
wait
echo "$out"