henad-compute 0.3.0

CPU and GPU engines that run Henad models, with their sim threads and parallel primitives.
Documentation

henad-compute

Henad is a parallel agent-based modelling engine, built to run millions of agents at interactive speeds on one machine.

This crate turns a model written against henad-core into something that runs. It holds the CPU engines, which step a model's struct-of-arrays lanes in parallel with rayon, and the GPU engines, which run a model's WGSL compute shaders through wgpu. It also holds the sim threads that step a model off the UI thread, and the snapshots they publish. A model is registered as an entry that a host can list and build. A program builds an entry with checked values into a Simulation and steps it.

The developer documentation describes both backends.

License

Licensed under MIT or Apache-2.0, at your option.