flybrain/services/flysim/crates/flybrain-core/src
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
..
decoder flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
lif gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
agent.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
bitset.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
dataset.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
error.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
jsmath.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
json.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
lib.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
lif.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
ordered.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
plasticity.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
pool.rs 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
retina.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
rng.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
version.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00