pub struct PlaneWriter<IP: MatrixPrecision> { /* private fields */ }Expand description
Writes tiles from out shared memory to output global memory using a plane for each tile
Implementations§
Source§impl<IP: MatrixPrecision> PlaneWriter<IP>
impl<IP: MatrixPrecision> PlaneWriter<IP>
pub fn new<S: StageConfig>( global: View<Line<IP::Global>, Coords2d, ReadWrite>, global_config: GlobalMemoryConfig, stage_config: S, ) -> Self
pub fn __expand_new<S: StageConfig>( scope: &mut Scope, global: <View<Line<IP::Global>, Coords2d, ReadWrite> as CubeType>::ExpandType, global_config: GlobalMemoryConfig, stage_config: S, ) -> <Self as CubeType>::ExpandType
Trait Implementations§
Source§impl<IP: MatrixPrecision> CubeType for PlaneWriter<IP>
impl<IP: MatrixPrecision> CubeType for PlaneWriter<IP>
type ExpandType = PlaneWriterExpand<IP>
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.
Source§impl<IP: MatrixPrecision> GlobalWriter<IP> for PlaneWriter<IP>
impl<IP: MatrixPrecision> GlobalWriter<IP> for PlaneWriter<IP>
Source§type Stage = PartitionedStage<<IP as MatrixPrecision>::Stage>
type Stage = PartitionedStage<<IP as MatrixPrecision>::Stage>
Tile stage that stores the data for this writer
Source§fn init<S: StageConfig>(
tensor: View<Line<IP::Global>, Coords2d, ReadWrite>,
config: GlobalMemoryConfig,
stage_config: S,
) -> Self
fn init<S: StageConfig>( tensor: View<Line<IP::Global>, Coords2d, ReadWrite>, config: GlobalMemoryConfig, stage_config: S, ) -> Self
Init this writer from a global tensor and config
fn __expand_init<S: StageConfig>( scope: &mut Scope, tensor: <View<Line<IP::Global>, Coords2d, ReadWrite> as CubeType>::ExpandType, config: GlobalMemoryConfig, stage_config: S, ) -> <Self as CubeType>::ExpandType
fn __expand_stage( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <Self::Stage as CubeType>::ExpandType
Source§impl<IP: MatrixPrecision> WriteEventListener for PlaneWriter<IP>
impl<IP: MatrixPrecision> WriteEventListener for PlaneWriter<IP>
fn on_event(this: &mut Self, event: WriteEvent)
fn __expand_on_event( scope: &mut Scope, this: <Self as CubeType>::ExpandType, event: <WriteEvent as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Auto Trait Implementations§
impl<IP> Freeze for PlaneWriter<IP>
impl<IP> RefUnwindSafe for PlaneWriter<IP>where
<IP as MatrixPrecision>::Global: RefUnwindSafe,
<IP as MatrixPrecision>::Stage: RefUnwindSafe,
impl<IP> Send for PlaneWriter<IP>
impl<IP> Sync for PlaneWriter<IP>
impl<IP> Unpin for PlaneWriter<IP>
impl<IP> UnwindSafe for PlaneWriter<IP>
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