Crate rustd_runtime

Crate rustd_runtime 

Source
Expand description

§HLX Runtime

Deterministic execution engine for LC-B crates.

§Architecture

LC-B Crate
     │
     ▼
┌─────────────────┐
│  Runtime        │
│  ┌───────────┐  │
│  │ Validator │  │  ← Integrity check (BLAKE3)
│  └───────────┘  │
│       │         │
│       ▼         │
│  ┌───────────┐  │
│  │ Executor  │  │  ← Instruction dispatch
│  └───────────┘  │
│       │         │
│       ▼         │
│  ┌───────────┐  │
│  │ Backend   │◄─┼── CPU (ndarray) | Vulkan (SPIR-V)
│  └───────────┘  │
└─────────────────┘
     │
     ▼
  Result (Value)

§Determinism Guarantees

  1. Same crate + same config = same result
  2. Fixed workgroup sizes on GPU
  3. Deterministic reduction order
  4. No dynamic memory allocation during execution

Re-exports§

pub use config::RuntimeConfig;
pub use backend::Backend;
pub use executor::Executor;
pub use value_store::ValueStore;
pub use speculation::SpeculationCoordinator;
pub use speculation::SpeculationConfig;
pub use speculation::AgentState;
pub use speculation::BarrierCoordinator;

Modules§

backend
Backend Trait
backends
Backends module
config
Runtime Configuration
executor
Executor
speculation
HLX-Scale Speculation Runtime
tuning
Hardware-Specific Tuning
value_store
Value Store

Functions§

execute
Execute a crate with default configuration
execute_with_config
High-level entry point to execute a crate with specific config