pub enum CubeCountStrategy {
FromProblem,
Sm {
cubes_first: bool,
num_sms: u32,
sm_usage: SmAllocation,
},
Flattened,
Spread,
}Expand description
Front-facing configuration when crafting a TilingBlueprint Allows choosing a strategy before knowing actual values
Variants§
FromProblem
X: num cubes in m, Y: num cubes in n, Z: num cubes in batch
Sm
If not cubes_first: X: num SMs, Y: num cubes per SM If cubes_first: X: num cubes per SM, Y: num SMs
Flattened
X: total cubes flattened (num SMs * num cubes per SM)
Spread
Heuristically find a balance for X, Y, Z that respects hardware limits
Trait Implementations§
Source§impl Clone for CubeCountStrategy
impl Clone for CubeCountStrategy
Source§fn clone(&self) -> CubeCountStrategy
fn clone(&self) -> CubeCountStrategy
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 CubeCountStrategy
impl Debug for CubeCountStrategy
Source§impl Default for CubeCountStrategy
impl Default for CubeCountStrategy
Source§fn default() -> CubeCountStrategy
fn default() -> CubeCountStrategy
Returns the “default value” for a type. Read more
Source§impl Hash for CubeCountStrategy
impl Hash for CubeCountStrategy
Source§impl PartialEq for CubeCountStrategy
impl PartialEq for CubeCountStrategy
impl Copy for CubeCountStrategy
impl Eq for CubeCountStrategy
impl StructuralPartialEq for CubeCountStrategy
Auto Trait Implementations§
impl Freeze for CubeCountStrategy
impl RefUnwindSafe for CubeCountStrategy
impl Send for CubeCountStrategy
impl Sync for CubeCountStrategy
impl Unpin for CubeCountStrategy
impl UnsafeUnpin for CubeCountStrategy
impl UnwindSafe for CubeCountStrategy
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CompilationArg for T
impl<T> CompilationArg for T
Source§fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
Compilation args should be the same even with different element types. However, it isn’t
possible to enforce it with the type system. So, we make the compilation args serializable
and dynamically cast them. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.