pub struct GlobalIterator<EI: CubePrimitive> { /* private fields */ }Expand description
An iterator over global memory, advancing along k.
Implementations§
Source§impl<EG: CubePrimitive> GlobalIterator<EG>
impl<EG: CubePrimitive> GlobalIterator<EG>
Sourcepub fn new(
global_view: View<EG, Coords2d>,
step: u32,
view_direction: ViewDirection,
checked: bool,
) -> Self
pub fn new( global_view: View<EG, Coords2d>, step: u32, view_direction: ViewDirection, checked: bool, ) -> Self
Instantiate a read iterator over the given global view, which should be sliced to the size
of one m/n stage and the full range of k handled by this matmul instance.
step is the amount advanced in view_direction each iteration.
checked determines whether the slices should be created as checked or unchecked.
pub fn __expand_new( scope: &mut Scope, global_view: <View<EG, Coords2d> as CubeType>::ExpandType, step: <u32 as CubeType>::ExpandType, view_direction: ViewDirection, checked: bool, ) -> <Self as CubeType>::ExpandType
pub fn __expand_advance( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_view( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <View<EG, Coords2d> as CubeType>::ExpandType
pub fn __expand_line_size( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> u32
Trait Implementations§
Source§impl<EI: Clone + CubePrimitive> Clone for GlobalIterator<EI>
impl<EI: Clone + CubePrimitive> Clone for GlobalIterator<EI>
Source§fn clone(&self) -> GlobalIterator<EI>
fn clone(&self) -> GlobalIterator<EI>
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<EI: CubePrimitive> CubeType for GlobalIterator<EI>
impl<EI: CubePrimitive> CubeType for GlobalIterator<EI>
type ExpandType = GlobalIteratorExpand<EI>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
impl<EG: CubePrimitive> Send for GlobalIterator<EG>
impl<EG: CubePrimitive> Sync for GlobalIterator<EG>
Auto Trait Implementations§
impl<EI> Freeze for GlobalIterator<EI>
impl<EI> RefUnwindSafe for GlobalIterator<EI>where
EI: RefUnwindSafe,
impl<EI> Unpin for GlobalIterator<EI>where
EI: Unpin,
impl<EI> UnwindSafe for GlobalIterator<EI>where
EI: UnwindSafe,
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