pub enum WorkDistribution {
EvenSplit,
RowSlab {
rows_per_tile: usize,
},
}Expand description
How to partition a matrix operation across multiple compute tiles.
Variants§
EvenSplit
Divide the M dimension of the output matrix into equal-sized row slabs,
one per tile. If m is not evenly divisible, the last tile gets the
remainder rows.
RowSlab
Assign exactly rows_per_tile rows to each tile except the last.
Trait Implementations§
Source§impl Clone for WorkDistribution
impl Clone for WorkDistribution
Source§fn clone(&self) -> WorkDistribution
fn clone(&self) -> WorkDistribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkDistribution
impl Debug for WorkDistribution
Source§impl Default for WorkDistribution
impl Default for WorkDistribution
Source§fn default() -> WorkDistribution
fn default() -> WorkDistribution
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkDistribution
impl PartialEq for WorkDistribution
Source§fn eq(&self, other: &WorkDistribution) -> bool
fn eq(&self, other: &WorkDistribution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WorkDistribution
impl StructuralPartialEq for WorkDistribution
Auto Trait Implementations§
impl Freeze for WorkDistribution
impl RefUnwindSafe for WorkDistribution
impl Send for WorkDistribution
impl Sync for WorkDistribution
impl Unpin for WorkDistribution
impl UnsafeUnpin for WorkDistribution
impl UnwindSafe for WorkDistribution
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