open-standards/wai/research/determinism-cost/runs/linux-b-decodes.sh
Transaction Science 89cc4bfdfe wai: the determinism-cost runs, and the record's summary of divergent float decodes
The per-host scripts that took the readings (build host, two x86_64
hosts) go beside the record, with how each platform is tagged. The
summary gains the integer decodes' total across platforms and the PSNR
change of float decodes whose entropy decode diverged, in both the tool
and its independent verifier; per-decode energy is stated in joules.
wai_det_energy reads each accelerator client's GPU time per registry
node. The conformance workflow's independent-verifiers job checks the
record, the texts quoting it, and the decoder bin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-22 13:32:56 -04:00

19 lines
1.7 KiB
Shell

# The integer and float decodes on the second x86_64 Linux host (CPU; discrete GPU through Vulkan and CUDA).
set -euo pipefail
R=$HOME/det1; W=$R/work; PY=$R/venv/bin/python; BIN=$R/target/release/wai_det_cost; X=$W/xplat; mkdir -p $X $W/fdecode
cd $R/src/wai
$PY -I tools/wai_determinism_cost.py jobs $W - > $W/jobs.dash.tsv
OS="Linux $(uname -r), $(ldd --version 2>&1 | sed -n '1s/.* //p') glibc"; HW="x86_64 laptop CPU, 14 cores, 20 threads, AVX2; discrete GPU, PCI vendor 0x10de"
meta() { printf '{"system": "%s", "hardware": "%s", "target": "%s", "fabric": "%s", "kernels": "%s", "threads": "%s", "rustc": "%s", "runtime": "%s"}\n' "$OS" "$HW" "$1" "$2" "$3" "$4" "1.98.0" "$5"; }
case "$1" in
int)
nice -n 19 $BIN decode $W/jobs.dash.tsv > $X/linux-x86_64-b-cpu.tsv
meta x86_64-unknown-linux-gnu CPU fast "all (20)" native > $X/linux-x86_64-b-cpu.json
WAI_DET_GPU_KEY=gpu-vulkan-10de nice -n 19 $BIN --gpu decode $W/jobs.dash.tsv > $X/linux-x86_64-b-gpu-vulkan.raw 2> $X/linux-x86_64-b-gpu-vulkan.err
cut -f1-4 $X/linux-x86_64-b-gpu-vulkan.raw > $X/linux-x86_64-b-gpu-vulkan.tsv
meta x86_64-unknown-linux-gnu "GPU, Vulkan, discrete, PCI vendor 0x10de" fast "all (20) for graphs off the device" "wgpu 30.0.1, $(grep -o 'adapter: .*' $X/linux-x86_64-b-gpu-vulkan.err | head -1 | sed 's/"/'"'"'/g')" > $X/linux-x86_64-b-gpu-vulkan.json ;;
float)
nice -n 19 $PY -I tools/wai_determinism_cost.py fdecode $W linux-x86_64-b-cpu --device cpu
nice -n 19 $PY -I tools/wai_determinism_cost.py fdecode $W linux-x86_64-b-cuda --device cuda
for t in linux-x86_64-b-cpu linux-x86_64-b-cuda; do printf '{"system": "%s", "hardware": "%s"}\n' "$OS" "$HW" > $W/fdecode/$t.meta; done ;;
esac