Repository navigation
perf: backend cost model with calibrated auto-select (#749) and GPU transfer/launch tracking (#750) - #873
Conversation
|
Blocking this as calibration evidence for Required before this is merge-ready: record real C and MLIR end-to-end measurements for the exact corpus on an environment where both backends execute successfully; persist source SHA plus environment/toolchain identity; make unavailable backends produce |
Adds --backend=auto driven by an AST-based cost model, plus a crossover calibration corpus and measured results validating the auto decision against the actually-faster backend. Harvested from the completed #749 session; the stray run.py.bak scratch file was dropped. Co-Authored-By: Claude Fable 5 <[email protected]>
Instruments the GPU runtime path (H2D, launch, execute, D2H+sync) behind a profile flag, with transfer bandwidth/latency microbenchmarks under benchmarks/gpu. Harvested from the completed #750 session. Co-Authored-By: Claude Fable 5 <[email protected]>
…750 code Co-Authored-By: Claude Fable 5 <[email protected]>
7ec75ec to
150e3cb
Compare
Two completed sessions from the #727 accelerator/performance epic, one commit each, no file overlap:
Verified locally: tests/unit/test_cost_model.py and test_flow_run.py pass (10 passed, 2 skipped); all touched Python parses. The .flow crossover benchmarks and GPU microbenchmarks ran in the session VMs (GPU numbers depend on the VM's accelerator availability).