Building a Virtual GPU in Lean: Kernel Optimization Without Real Hardware, 1000× Faster
hargup13 · x · 2026-11-25
Harsh Gupta shared a talk transcript from SF Lean Meetup on how Theoric built a GPU simulator enabling kernel performance optimization without a physical GPU.
Key ideas
- Kernel optimization is inherently hardware-in-the-loop; the author replaces real hardware with a "virtual hardware" model
- Y1-SIMT is an extremely simple virtual GPU formalized in Lean: a lockstep warp with 4 lanes, a shared register file (64 vectors × 4 FP32), and 1 MiB of VRAM
- A 4×4 matrix multiply demo walks through a full execution trace — 20 instructions, 1 cycle each — with deterministic, replayable state
Highlights
- Behaves like an H200 except fully deterministic, making timing reasoning exact
- Lean brings formal verification guarantees; the simulator runs 1,000× faster than real hardware
- Includes a virtual profiler and step-through visualizer
The post includes the full transcript plus Q&A on cache modeling, deterministic timing, and how it compares to simulation/verification approaches.
More from Infra
- Reversible computing pitched as US answer to China serving tokens at 25% the cost — MikePFrank · 2026-11-25
- Ben Lorica Makes the Case for the 'Agent Data Runtime,' a New Data Layer for AI Agents — bigdata · 2026-11-25
- CircleCI's self-building software factory: 8x merges, sub-hour merge times — rseroter · 2026-11-25
- Inkling 2 Mini Quantized With Astral-Q, GGUF Released as Framework Nears Open Source — SyntheticMindsLab · 2026-11-25
- Verne Robotics cuts robotics training costs 50% with preemptible compute on Together GPU clusters — togethercompute · 2026-11-25
- Norwegian founder says wealth tax forced sale of data center now set to become one of Europe's largest AI plants, reportedly serving Anthropic — naval · 2026-11-25