igneum/tools/attack/adv-cache-3/queue/94-adv-cache-3-relations.sh
2026-10-07 19:31:57 +00:00

14 lines
1.3 KiB
Bash
Executable file

#!/usr/bin/env bash
# adv-cache-3 (owner), queue 91's implementation: feed-forward relations, 4 day keys x 2^20 lines, the 512 x 512 correlation
# table, plus the reduced-C plant (one double round) and the no-feedforward inversion plant. Runs ON build box 1.
set -u
BIN=/srv/builds/_adv-cache-3/bin/adv-cache-3; D=/srv/builds/_adv-cache-3/logs; mkdir -p $D
T=${THREADS:-48}
# main's rule of 20:1x BST, 7 October 2026: every sweep starts through the build-server lane's lease pool, never by hand
run() { tag=$1; shift; echo "$(date -u +%FT%TZ) start $tag" >> $D/ledger.txt; /srv/builds/_bin/lease pool $T --min 16 --label "adv-cache-3 $tag" --owner adv-cache-3 -- $BIN "$@" > $D/$tag.log 2>&1; rc=$?; echo "$(date -u +%FT%TZ) end $tag rc=$rc" >> $D/ledger.txt; echo "$tag rc=$rc"; }
echo $$ > $D/relations-batch.pid
run relations-4d-l20 relations --day0 20730 --days 4 --lines-log2 20 --threads {cores}
run relations-plant-r1 relations --day0 20730 --days 1 --lines-log2 16 --rounds 1 --threads {cores}
run relations-plant-r2 relations --day0 20730 --days 1 --lines-log2 16 --rounds 2 --threads {cores}
run relations-r3 relations --day0 20730 --days 1 --lines-log2 18 --rounds 3 --threads {cores}
echo "relations-batch done $(date -u +%FT%TZ)"