pub struct TilingParams {
pub tile_i: usize,
pub tile_j: usize,
pub tile_k: usize,
pub target_level: CacheLevel,
}Expand description
Loop tiling parameters.
Fields§
§tile_i: usizeTile size for outermost dimension
tile_j: usizeTile size for middle dimension
tile_k: usizeTile size for innermost dimension
target_level: CacheLevelTarget cache level
Implementations§
Source§impl TilingParams
impl TilingParams
Sourcepub fn for_cache_size(cache_size_kb: usize, element_size: usize) -> Self
pub fn for_cache_size(cache_size_kb: usize, element_size: usize) -> Self
Create tiling parameters for a given cache size.
Sourcepub fn validate(&self) -> Result<(), CacheOptimizerError>
pub fn validate(&self) -> Result<(), CacheOptimizerError>
Validate tiling parameters.
Trait Implementations§
Source§impl Clone for TilingParams
impl Clone for TilingParams
Source§fn clone(&self) -> TilingParams
fn clone(&self) -> TilingParams
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 TilingParams
impl Debug for TilingParams
Source§impl<'de> Deserialize<'de> for TilingParams
impl<'de> Deserialize<'de> for TilingParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TilingParams
impl PartialEq for TilingParams
Source§impl Serialize for TilingParams
impl Serialize for TilingParams
impl StructuralPartialEq for TilingParams
Auto Trait Implementations§
impl Freeze for TilingParams
impl RefUnwindSafe for TilingParams
impl Send for TilingParams
impl Sync for TilingParams
impl Unpin for TilingParams
impl UnwindSafe for TilingParams
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