pub struct NumaMemoryStrategy { /* private fields */ }
Expand description
NUMA-aware memory allocation hints
Provides guidance for memory allocation strategies on NUMA systems.
Implementations§
Source§impl NumaMemoryStrategy
impl NumaMemoryStrategy
Sourcepub fn new(topology: NumaTopology) -> Self
pub fn new(topology: NumaTopology) -> Self
Create a new NUMA memory strategy
Sourcepub fn allocatematrix_memory<F>(
&self,
rows: usize,
cols: usize,
) -> NumaAllocationHintwhere
F: Float,
pub fn allocatematrix_memory<F>(
&self,
rows: usize,
cols: usize,
) -> NumaAllocationHintwhere
F: Float,
Get recommended memory allocation for a matrix operation
Sourcepub fn analyze_access_pattern(
&self,
operation: NumaOperation,
matrixsizes: &[(usize, usize)],
) -> NumaOptimizationHint
pub fn analyze_access_pattern( &self, operation: NumaOperation, matrixsizes: &[(usize, usize)], ) -> NumaOptimizationHint
Analyze memory access patterns for optimization
Auto Trait Implementations§
impl Freeze for NumaMemoryStrategy
impl RefUnwindSafe for NumaMemoryStrategy
impl Send for NumaMemoryStrategy
impl Sync for NumaMemoryStrategy
impl Unpin for NumaMemoryStrategy
impl UnwindSafe for NumaMemoryStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more