numaperf-core
Core types and error handling for the numaperf NUMA runtime.
Overview
numaperf-core provides the foundational types used throughout the numaperf workspace: type-safe identifiers for NUMA nodes and CPUs, efficient bitset implementations for CPU and node masks, and a unified error type.
Usage
[]
= "0.1"
Most users should use the numaperf facade crate instead.
Example
use ;
// Type-safe node identifier
let node = new;
// CPU set with bitmap operations
let mut cpus = new;
cpus.add;
cpus.add;
assert!;
// Node mask for memory policies
let mask = single;
Types
NodeId- Type-safe NUMA node identifierCpuSet- Efficient CPU set with bitmap operationsNodeMask- NUMA node set for memory policiesNumaError- Unified error type for all numaperf operationsHardMode- Soft vs strict enforcement modeCapabilities- System capability detection
Part of numaperf
This crate is part of the numaperf workspace.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.