PlaneWriter

Struct PlaneWriter 

Source
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>

Source

pub fn new<S: StageConfig>( global: View<Line<IP::Global>, Coords2d, ReadWrite>, global_config: GlobalMemoryConfig, stage_config: S, ) -> Self

Source

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>

Source§

type ExpandType = PlaneWriterExpand<IP>

Source§

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>

Source§

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

Init this writer from a global tensor and config
Source§

fn stage(this: &Self) -> Self::Stage

Stage used by this writer
Source§

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

Source§

fn __expand_stage( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <Self::Stage as CubeType>::ExpandType

Source§

impl<IP: MatrixPrecision> WriteEventListener for PlaneWriter<IP>

Source§

fn on_event(this: &mut Self, event: WriteEvent)

Source§

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>

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V