pub struct CacheAwareParams {
pub cache_line_size: usize,
pub l1_cache_size: usize,
pub l2_cache_size: usize,
pub l3_cache_size: usize,
pub prefetch_distance: usize,
pub enable_chunking: bool,
}Expand description
Cache-aware quantization parameters for optimal memory access patterns
Fields§
§cache_line_size: usizeCache line size in bytes (typically 64 bytes)
l1_cache_size: usizeL1 cache size in bytes (typically 32KB)
l2_cache_size: usizeL2 cache size in bytes (typically 256KB)
l3_cache_size: usizeL3 cache size in bytes (typically 8MB)
prefetch_distance: usizePrefetch distance (elements ahead to prefetch)
enable_chunking: boolEnable cache-optimized chunking
Trait Implementations§
Source§impl Clone for CacheAwareParams
impl Clone for CacheAwareParams
Source§fn clone(&self) -> CacheAwareParams
fn clone(&self) -> CacheAwareParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheAwareParams
impl Debug for CacheAwareParams
Auto Trait Implementations§
impl Freeze for CacheAwareParams
impl RefUnwindSafe for CacheAwareParams
impl Send for CacheAwareParams
impl Sync for CacheAwareParams
impl Unpin for CacheAwareParams
impl UnsafeUnpin for CacheAwareParams
impl UnwindSafe for CacheAwareParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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