Trait TileConfig

Source
pub trait TileConfig:
    Copy
    + Clone
    + Eq
    + PartialEq
    + Hash
    + Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn plane_dim(&self) -> u32;
    fn matrix_layout<I: Into<Ident>>(&self, ident: I) -> MatrixLayout;
    fn stage_line_size<I: Into<Ident>>(&self, ident: I) -> u32;
    fn global_line_size<I: Into<Ident>>(&self, ident: I) -> u32;
    fn tile_size(&self) -> &TileSize;
}
Expand description

Configuration for the Tile Matmul level

Required Methods§

Source

fn plane_dim(&self) -> u32

Returns the number of units in a plane

Source

fn matrix_layout<I: Into<Ident>>(&self, ident: I) -> MatrixLayout

Returns the MatrixLayout for the given ident

Source

fn stage_line_size<I: Into<Ident>>(&self, ident: I) -> u32

Returns the line size for the given ident

Source

fn global_line_size<I: Into<Ident>>(&self, ident: I) -> u32

Returns the line size for the given ident

Source

fn tile_size(&self) -> &TileSize

Returns the (m,n,k) shape of the tiles

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§