pub struct MetalMemoryManager { /* private fields */ }Expand description
Metal memory management for sparse matrices
Implementations§
Source§impl MetalMemoryManager
impl MetalMemoryManager
Sourcepub fn optimal_threadgroup_size(&self, problem_size: usize) -> usize
pub fn optimal_threadgroup_size(&self, problem_size: usize) -> usize
Get optimal threadgroup size for the current device
Sourcepub fn should_use_simdgroups<T>(&self, matrix: &CsrArray<T>) -> bool
pub fn should_use_simdgroups<T>(&self, matrix: &CsrArray<T>) -> bool
Check if SIMD group operations are beneficial
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetalMemoryManager
impl RefUnwindSafe for MetalMemoryManager
impl Send for MetalMemoryManager
impl Sync for MetalMemoryManager
impl Unpin for MetalMemoryManager
impl UnwindSafe for MetalMemoryManager
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