numaperf-core 0.1.0

Core types and error handling for the numaperf NUMA runtime
Documentation
  • Coverage
  • 100%
    42 out of 42 items documented1 out of 1 items with examples
  • Size
  • Source code size: 40.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.57 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dipankar

numaperf-core

Crates.io Documentation

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

[dependencies]
numaperf-core = "0.1"

Most users should use the numaperf facade crate instead.

Example

use numaperf_core::{NodeId, CpuSet, NodeMask};

// Type-safe node identifier
let node = NodeId::new(0);

// CPU set with bitmap operations
let mut cpus = CpuSet::new();
cpus.add(0);
cpus.add(1);
assert!(cpus.contains(0));

// Node mask for memory policies
let mask = NodeMask::single(node);

Types

  • NodeId - Type-safe NUMA node identifier
  • CpuSet - Efficient CPU set with bitmap operations
  • NodeMask - NUMA node set for memory policies
  • NumaError - Unified error type for all numaperf operations
  • HardMode - Soft vs strict enforcement mode
  • Capabilities - 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.