flybrain/services/flysim/crates
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
..
fly-control-edge control edge follows flysim's stops and starts; large request bodies match direct 2026-10-02 01:43:34 +00:00
fly-edge fly-edge: healthz fails when the bus goes silent; snapshot age gauge 2026-10-01 21:56:34 +00:00
fly-legacy-session 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
fly-scorecard scorecard: per-checkpoint trap rule, Holm over the metric family, throws count throws, children die with the suite, LegacyConfig fields 2026-10-02 03:50:50 +00:00
fly-session 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
fly-session-types session types: the legacy composition names pokered-unique8-v8 2026-09-30 02:11:45 +00:00
flybrain-core 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
flybrain-gb macros: the mart's list cursor is the entry too; the catch test pins its first-window ball (row 71) 2026-10-01 13:10:05 +00:00
flybus flybus: deliveries carry read locations; small store I/O in place; no body copies 2026-10-01 23:57:29 +00:00
flysim EDGE-02 notes: bus threads on an aux cpu (FLY_SESSION_AUX_CPUS, SESSION_AUX_CPUS in the deploy), fly-feed direct never rolled back, watchdog falls back to direct at the 4th failure and never reboots for the edge; runbook cost corrected 2026-10-02 04:22:39 +00:00
flysim-store FLYSIM01 carries the reinforcement count; the import takes its ids from the file; StageRestore refuses conflicts before building a network 2026-09-29 17:17:56 +00:00