26 lines
730 B
Bash
26 lines
730 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
# Build and run Tiny-Hot triad with bench-only SLL-only + warmup tuned (REFILL=12, WARMUP32=192) + PGO.
|
||
|
|
# Usage: scripts/run_tiny_sllonly_r12w192_triad.sh [cycles]
|
||
|
|
|
||
|
|
ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd)
|
||
|
|
cd "$ROOT_DIR"
|
||
|
|
|
||
|
|
cycles=${1:-60000}
|
||
|
|
|
||
|
|
echo "[build] system/mimalloc (fast + mi)"
|
||
|
|
make -s bench_fast bench_tiny_hot_mi >/dev/null
|
||
|
|
|
||
|
|
echo "[build] HAKMEM bench_sll_only (r12 w32=192 PGO)"
|
||
|
|
make -s pgo-benchsll-r12w192-profile >/dev/null
|
||
|
|
make -s pgo-benchsll-r12w192-build >/dev/null
|
||
|
|
|
||
|
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}"
|
||
|
|
|
||
|
|
echo "[run] triad (bench_sll_only r12 w32=192)"
|
||
|
|
SKIP_BUILD=1 bash scripts/run_tiny_hot_triad.sh "$cycles"
|
||
|
|
|
||
|
|
echo "[note] Latest CSV printed by triad runner."
|
||
|
|
|