Skip to content

feat(bootstrap): host DMA-driven multi-layer inference flow (Wave 41, R-HS-3)#790

Open
gHashTag wants to merge 2 commits into
masterfrom
feat/wave-41/host-inference
Open

feat(bootstrap): host DMA-driven multi-layer inference flow (Wave 41, R-HS-3)#790
gHashTag wants to merge 2 commits into
masterfrom
feat/wave-41/host-inference

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Wave 41 — R-HS-3: DMA-driven multi-layer BitNet inference flow

Closes #789

What changed

  • New file bootstrap/src/host/engine.rs:

    • InferenceEngine with per-layer: DMA prefetch (wait DmaDone) → inference (wait InferenceDone) → DMA drain (wait DmaDone)
    • InferenceReport (total_layers, layers_completed, error_layer, writes, reads)
    • 16 inline unit tests
  • Updated bootstrap/src/host/irq.rs:

    • wait_irq_mask(mask, max_rounds) — generic IRQ wait for any mask
    • wait_done_irq refactored to delegate to wait_irq_mask
  • Updated bootstrap/src/host/mod.rs: pub mod engine + re-exports

  • Updated bootstrap/src/main.rs:

    • New CLI Commands::HostInference with --max-rounds flag
    • run_host_inference() prints OK layers=N completed=M writes=W reads=R
  • New file bootstrap/tests/host_engine.rs: 20 integration tests

  • Updated docs/NOW.md: wave-41 entry

Test results

58/58 inline host tests pass
25/25 host_driver integration tests pass
21/21 host_irq integration tests pass
20/20 host_engine integration tests pass
= 36 new tests, zero regressions

claude added 2 commits May 24, 2026 02:34
…-HS-2, Closes #786)

Wave 40 adds IrqHandler callback registry, IrqDrivenDriver with
wait_done_irq, and host-poll-vs-irq CLI that runs both completion
paths against MockMmio and compares write/read counts.

32 new tests (11 inline + 21 integration). Zero regressions.
…loses #789)

Wave 41 adds InferenceEngine with per-layer DMA prefetch -> inference ->
DMA drain cycle, wait_irq_mask generic IRQ wait, and host-inference CLI.

36 new tests (16 inline + 20 integration). Zero regressions.
This was referenced May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(bootstrap): host DMA-driven inference flow (Wave 41, R-HS-3)

2 participants