#!/bin/bash
set -euo pipefail
while kill -0 597139 2>/dev/null; do sleep 5; done
dir=artifacts/full-qk-20260913/bs2-search
rg -q 'hardwareTest=PASS' "$dir/build.log"
target/release/ipu-stack profile-extract "$dir/model.ipuexe" "$dir/resident/output.bin" -o "$dir/model.capnp"
target/release/ipu-stack profile-query "$dir/model.capnp" --kind compute --limit 30 --json > "$dir/query.json"
target/release/ipu-stack profile-render "$dir/model.capnp" -o "$dir/model.html"
python3 artifacts/full-qk-20260913/collect_results.py
