jgrusewski
daf771c38d
audit: annotate all remaining to_vec/memcpy_dtoh — categorized 158 sites
Every to_vec()/memcpy_dtoh across 48 files audited and annotated:
- ~100 false positives: Rust slice .to_vec() (cpu-side, never touches GPU)
- ~25 gpu-exit: legitimate scalar readbacks (loss, grad_norm, epoch state)
- ~20 test-only readbacks: gated by #[cfg(test)] scope
- ~10 cpu-side uploads: .to_vec() before from_vec() GPU upload
- ~3 checkpoint exports: export_to_host at epoch boundary
Annotations use inline comments: // cpu-side, // gpu-exit:, // test-only
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 19:36:41 +01:00
..
2026-03-17 23:32:39 +01:00
2026-03-18 19:36:41 +01:00
2026-03-18 18:24:30 +01:00
2026-03-18 19:36:41 +01:00
2026-03-18 19:36:41 +01:00
2026-03-18 19:36:41 +01:00
2026-03-16 21:01:28 +01:00
2026-03-18 18:24:30 +01:00
2026-03-08 15:17:22 +01:00
2026-03-18 07:37:49 +01:00
2026-03-18 07:26:56 +01:00