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

24 lines
2.2 KiB
Bash
Executable file

#!/usr/bin/env bash
# adv-cache-3 (owner), queue 90's implementation plus the pebble (92) and cross rows: the quick batch, seconds each.
# Runs ON build box 1 through the lease pool. Binary /srv/builds/_adv-cache-3/bin/adv-cache-3 (sha in the report).
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/skip-batch.pid
run skip-d20730 skip --day 20730 --segments 1024 --threads {cores}
run skip-d20733 skip --day 20733 --segments 1024 --threads {cores}
run skip-plant-noxor skip --day 20730 --segments 1024 --plant no-xor --threads {cores}
run skip-plant-noff skip --day 20730 --segments 1024 --plant no-feedforward --threads {cores}
run skip-rounds0 skip --day 20730 --segments 256 --rounds 0 --threads {cores}
run skip-rounds1 skip --day 20730 --segments 256 --rounds 1 --threads {cores}
run skip-rounds2 skip --day 20730 --segments 256 --rounds 2 --threads {cores}
run skip-w4-r2 skip --day 20730 --segments 65536 --lines 16 --w 4 --rounds 2 --threads {cores}
run skip-w4-r2-plant-noxor skip --day 20730 --segments 4096 --lines 16 --w 4 --rounds 2 --plant no-xor --threads {cores}
run skip-w4-r2-plant-noff skip --day 20730 --segments 4096 --lines 16 --w 4 --rounds 2 --plant no-feedforward --threads {cores}
run pebble pebble --lines 64 --exhaustive-upto 16 --mc 1000000
run pebble-plant-skip8 pebble --lines 64 --exhaustive-upto 12 --mc 200000 --skip-edge 8
run cross-d20730 cross --day 20730 --segments 4096 --threads {cores}
run cross-plant-noxor-r1 cross --day 20730 --segments 4096 --plant no-xor --rounds 1 --threads {cores}
echo "skip-batch done $(date -u +%FT%TZ)"