Expand description
Typed placement law for Atlas memory and runtime crates.
Themis owns placement vocabulary, not allocation or execution. Mnemosyne consumes these types to choose memory locality. Moirai consumes these types to choose worker and task locality.
Structs§
- Cache
Level - Cache hierarchy level.
- Const
Numa Node Placement - A node-specific placement capability, verified at compile time.
- Const
Thread Local Numa Placement - A node-specific thread-confined placement capability, verified at compile time.
- CoreId
- Identity of a physical core within one
CpuTopologysnapshot. - CpuEfficiency
View - A borrowed CPU efficiency-class table whose presence is already proven.
- CpuSmt
View - A borrowed core table whose presence is already proven.
- CpuTopology
- CPU topology snapshot.
- Efficiency
Class - Relative performance rank of a logical processor on a hybrid CPU.
- GpuDevice
Properties - Provider-supplied GPU device properties for
crate::GpuTopology::from_provider. - GpuTopology
- GPU device topology snapshot (atlas ADR 0002).
- Locality
Domain Id - Coarse memory locality domain.
- Numa
Bucket Index - NUMA bucket identity for a fixed-size placement table.
- Numa
Node - NUMA node topology.
- Numa
Node Id - NUMA node identity.
- Numa
Node Placement - A node-specific placement capability.
- Sync
Region Placement - Thread-portable placement-region capability.
- Thread
Local Numa Placement - A node-specific thread-confined placement capability.
- Thread
Local Placement - Thread-confined placement capability.
- Topology
Epoch - Topology version token.
- TpuDevice
Properties - Provider-supplied TPU device properties for
crate::TpuTopology::from_provider. - TpuTopology
- TPU device topology snapshot.
- Worker
Id - Scheduler worker identity.
Enums§
- Bind
Error - Why the calling thread could not be confined to a logical processor.
- Memory
Tier - Memory tier classification.
- Placement
Hint - Placement preference supplied by allocation or scheduling callers.
Traits§
- Const
Pinned Cell - A cell pinned statically to a specific NUMA node.
- Const
Pinned Slice - A contiguous slice of cells pinned statically to a specific NUMA node.
- Pinned
Cell - A cell pinned to a specific NUMA node.
- Pinned
Slice - A contiguous slice of cells pinned to a specific NUMA node.
Functions§
- bind_
current_ thread - Confines the calling thread to exactly one logical processor.
- current_
numa_ node - Returns the cached NUMA node for the calling thread.
- current_
processor - Returns the current processor when the platform exposes it.
- refresh_
current_ numa_ node - Refreshes and returns the calling thread’s NUMA node.
- sync_
region_ placement_ scope - Opens a thread-portable placement-region scope.
- thread_
local_ placement_ scope - Opens a thread-confined placement scope.
- try_
current_ numa_ node - Queries the calling thread’s NUMA node without caching, returning
Nonewhen the platform does not expose the information.
Type Aliases§
- Const
Numa Pinned Cell - A placement cell pinned to a specific NUMA node, verified at compile time.
- Const
Numa Pinned Cell Ref - A borrowed reference to a cell pinned statically to a specific NUMA node.
- Const
Numa Pinned Slice - A contiguous slice of cells pinned to a specific NUMA node, verified at compile time.
- Const
Numa Pinned Slice Ref - A borrowed reference to a contiguous slice of cells pinned statically to a specific NUMA node.
- Numa
Pinned Cell - A placement cell pinned to a specific NUMA node.
- Numa
Pinned Cell Ref - A borrowed reference to a cell pinned to a specific NUMA node.
- Numa
Pinned Slice - A contiguous slice of cells pinned to a specific NUMA node.
- Numa
Pinned Slice Ref - A borrowed reference to a contiguous slice of cells pinned to a specific NUMA node.