mod base;
mod plane;
mod unit;
pub use base::*;
use cubek_std::TileSize;
pub use plane::*;
pub use unit::*;
use crate::definition::MatmulProblem;
pub(crate) fn is_tiny(problem: &MatmulProblem, tile_size: &TileSize) -> bool {
const TINY_FACTOR: usize = 2;
const TINY_NUM_DIM: u8 = 2;
let m = tile_size.m as usize * TINY_FACTOR >= problem.m;
let n = tile_size.n as usize * TINY_FACTOR >= problem.n;
let k = tile_size.k as usize * TINY_FACTOR >= problem.k;
(m as u8 + n as u8 + k as u8) >= TINY_NUM_DIM
}