# x86_64 host B: build this change's decoder and DET1's, then the 192 integer decodes with each kernel set. set -euo pipefail R=$HOME/idf; W=$R/work; X=$R/xplat; mkdir -p $X $R/bin export PATH=$HOME/.cargo/bin:$PATH CARGO_PROFILE_DEV_DEBUG=0 TAG=${1:?tag} cd $R/src/wai/wai-rs && CARGO_TARGET_DIR=$R/target nice -n 19 cargo build --locked --release --no-default-features --features neural_int --bin wai_det_cost -j 8 2>&1 | tail -1 cp $R/target/release/wai_det_cost $R/bin/native.$TAG python3 - "$W" > $W/jobs.all.tsv <<'PY' import json, sys w = sys.argv[1] ids = [p["id"] for p in json.load(open(f"{w}/pictures.json"))["pictures"]] for q in range(1, 9): for i in ids: print(f"{w}/sets/q{q}\t{w}/int/q{q}/{i}.wih1\t-") PY 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" for k in ${SETS:-avx2-vnni avx2 wide}; do WAI_INT_ISA=$k nice -n 19 $R/bin/native.$TAG decode $W/jobs.all.tsv > $X/linux-x86_64-b-cpu-isa-$k.tsv printf '{"system": "%s", "hardware": "%s", "target": "x86_64-unknown-linux-gnu", "fabric": "CPU", "kernels": "fast, kernel set %s", "threads": "all (20)", "rustc": "1.98.0", "runtime": "native", "measured": "%s"}\n' "$OS" "$HW" "$k" "$(date +%F)" > $X/linux-x86_64-b-cpu-isa-$k.json wc -l $X/linux-x86_64-b-cpu-isa-$k.tsv done