docsapi referencedarkforest-core-device-cpu
API Referencecrate: darkforest-coresince v0.1.0-alpha

Cpu

Host CPU execution device utilizing 64-byte aligned SIMD memory.

Cpu

darkforest-core module: device since v0.1.0-alpha

Signature

rust
pub struct Cpu

Overview

Host CPU execution device utilizing 64-byte aligned SIMD memory.

Invariants & Design Principles

  • Invariant: Adheres strictly to Dark Forest 64-byte alignment and strided memory invariants.
  • Invariant: Verified via unit tests, Miri memory model, and PyTorch cross-checks.

Usage Example

rust
// Example calling Cpu
let _res = darkforest_core::device::Cpu();

Related Components