henad-compute 0.3.0

CPU and GPU engines that run Henad models, with their sim threads and parallel primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! CPU engine machinery, the sibling of [`crate::gpu`].
//!
//! [`sim_thread`] runs a state on its own thread on native and inside the frame loop on the web. The three
//! `*_engine` modules each build a state from an authoring trait. [`field`] holds the grid layers an agent model can
//! sit over, and [`layout`] relaxes a network model's node positions. [`primitives`] holds the chunking, scatter,
//! lane and connected-component building blocks that the engines and models call.

pub mod agent_engine;
pub mod field;
pub mod grid_engine;
pub mod layout;
pub mod network_engine;
pub mod primitives;
pub mod sim_thread;

pub use agent_engine::{AGENT_INIT_SEED, AgentModelState, agent_init_rng, agent_model_param_descriptors};
pub use grid_engine::{GRID_INIT_SEED, GridModelState, grid_init_rng, grid_model_param_descriptors};