#!/bin/bash
set -euo pipefail
source .env
RAYON_NUM_THREADS=16 RUST_LOG=ipu_codegen=debug target/release/ipu-trivial-test "$IPU_CONFIG" --sdk "$POPLAR_SDK_ENABLED" --runtime-source device/static_runtime.S --workload siglip-vit-benchmark --vit-layers 27 --vit-batch 1 --fuse-qkv --fp8-scale=-4 --optimization-steps 0 --load-search-state artifacts/fp8-pv-batches-20260913/bs1-step64-state.json --exchange-stream-words 1024 --reference-run --reference-fp32 --reference-inferences 2 --device-lock artifacts/layout-sweep/device.lock --memory-profile-directory artifacts/mid-cast-order-20260913/bs1/memory --save-reference-inputs artifacts/mid-cast-order-20260913/bs1/resident --package artifacts/mid-cast-order-20260913/bs1/model.ipuexe > artifacts/mid-cast-order-20260913/bs1/build.log 2>&1
