flybrain/infra/docs
acamilo 7d817d8cee GPU-02: the session steps a frame per call, the CUDA backend keeps its state on the device
LifNetwork::step_frame runs a game frame's ticks in one call and ORs every
tick's spikes into the transition's bitset. On the CPU it is exactly the
one-tick loop the session ran; on the GPU it is one batch, with membrane
and refractory left on the device (device-owned state): per frame only the
noise draws, visual drive and plastic gains go up and the spike lists come
down, instead of 1.4 MB per tick (about 24 MB per frame) with the old
step(1) loop and per-batch host sync.

- LifBackend (cpu / cuda:<ordinal>) from FLY_LIF_CUDA / FLY_LIF_CUDA_DEVICE,
  set_backend, configure_sweep (set_sweep_plan without the test hook),
  sync_host, host_state_current, try_step, take_backend_fault.
- export_state downloads the device arrays itself while the host copy is
  stale, so no capture can read old values; the session syncs before
  State.Capture.
- A CUDA failure detaches the backend: if the host state was current the
  frame continues bit-exactly on the CPU, otherwise the agent fails and a
  restore in that worker runs on the CPU. Warm-up no longer panics.
- The legacy agent worker picks its backend explicitly and refuses a GPU it
  cannot have (no feature, no device) at Agent.Initialize instead of
  running the CPU under a GPU label. The FLY_LIF_CUDA hook in
  set_sweep_plan stays for the golden suite and the legacy loop.
- cuda passthrough features on fly-session and fly-legacy-session, so
  FLY_CARGO_FEATURES=cuda reaches flysim-session, fly-shadow, fly-session.
- Tests: step_frame vs the one-tick loop (state and bitset, 1 and 3
  threads), the backend switch; cuda_exact frame mode; a cuda-feature
  session test (FAFB, rollback, restore, checkpoints) against the CPU
  reference.
2026-10-02 07:49:17 +00:00
..
capture-freeze.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
cuda-on-dev-soak.tsv flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
cuda-on-dev.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
gpu-quality-nvenc-p4-rail.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
gpu-quality-nvenc-p6-rail.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
gpu-quality-nvenc-p7-rail.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
gpu-quality-ref-rail.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
gpu-quality-x264-veryfast-rail.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
lif-cuda-spike.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
loop-recovery.md infra: a reset's replay is not progress; the ladder measures progress and catches against the reward names it has seen (row 70 review r3) 2026-09-30 23:58:13 +00:00
macros-bench.md docs: the trap hunt and the bench run the service's frame since FND-01, and hunts across the change do not compare 2026-09-23 20:15:20 +00:00
macros-traps.md docs: macros-traps row 71 trap hunt before/after 2026-10-01 13:49:20 +00:00
p0-local-encoded-frame.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
p0-local-live.png flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
p0-measurements.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
release-ct-provision.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
release-v0.1.0.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
release-v0.1.1.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
release-v0.1.2.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
release-v0.1.3.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
release-v0.1.4.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
room-escape.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
runbook.md GPU-02: the session steps a frame per call, the CUDA backend keeps its state on the device 2026-10-02 07:49:17 +00:00
secrets-history-scan.md infra: pass entry names out of the public tree 2026-09-29 15:52:35 +00:00
simloop-profile.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
virtualgl-soak.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
virtualgl-spike.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00