flybrain/services/flysim/crates/flybrain-core/tests
acamilo 7d2650ae5e gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime
A CUDA failure (a failed batch or read-back, or an attach that fails at a restart) now marks the
GPU unusable for the process: the replacement agent worker is created on the CPU and restores the
last checkpoint, so a lost device no longer leaves the session unable to restore and a flaky one is
never re-attached in a loop. Worker processes share the record through a marker file the launcher
owns and empties when it starts. Exposed as the LIF_GPU_FALLBACK log line,
fly_brain_backend{backend}, fly_brain_backend_wanted and fly_brain_backend_fallbacks_total, and
fly-watchdog check 11 (report only).

Adds a committed fault-injection hook for the cuda feature (FLY_LIF_CUDA_FAULT or the inject
setters), the recovery harness in legacy_parity, and the cuda_fallback test: init failure, transient
(host current) and permanent (in-process and process) faults, each equal to the CPU reference.
Corrects the runbook, documents the stale host arrays on LifNetwork, and has cuda_session assert
that no fallback hid a CPU pass.
2026-10-02 10:15:03 +00:00
..
common flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
agent.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
decoder.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
envelope.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_agent.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_math.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_platformer.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_real.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_restore.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_toy.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
golden_versions.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
gpu_health.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
macro_roles.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
placement.rs session: pin the sweep workers one per cpu in flysim-session (PERF-02) 2026-10-01 12:16:59 +00:00
plasticity.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
retina.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
tick_spikes.rs 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