Skip to main content

TileExpand

Enum TileExpand 

Source
pub enum TileExpand<N: Numeric, Sc: TileScope, IO: SliceVisibility> {
    SharedMemory(<SharedTile<N, IO> as CubeType>::ExpandType),
    Cmma(<CmmaTile<N> as CubeType>::ExpandType),
    Mma(<MmaTile<N> as CubeType>::ExpandType),
    Register(<RegisterTile<N> as CubeType>::ExpandType),
    PlaneVec(<PlaneVecTile<N> as CubeType>::ExpandType),
    Interleaved(<InterleavedTile<N> as CubeType>::ExpandType),
    Unit(<UnitTile<N> as CubeType>::ExpandType),
    WhiteboxFragment(<WhiteboxFragment<N> as CubeType>::ExpandType),
    Bounce(<BounceTile<N> as CubeType>::ExpandType),
    Broadcasted(<Value<N> as CubeType>::ExpandType),
    None,
    _Phantom(<ScopeMarker<Sc> as CubeType>::ExpandType),
}

Variants§

§

SharedMemory(<SharedTile<N, IO> as CubeType>::ExpandType)

§

Cmma(<CmmaTile<N> as CubeType>::ExpandType)

§

Mma(<MmaTile<N> as CubeType>::ExpandType)

§

Register(<RegisterTile<N> as CubeType>::ExpandType)

§

PlaneVec(<PlaneVecTile<N> as CubeType>::ExpandType)

§

Interleaved(<InterleavedTile<N> as CubeType>::ExpandType)

§

Unit(<UnitTile<N> as CubeType>::ExpandType)

§

WhiteboxFragment(<WhiteboxFragment<N> as CubeType>::ExpandType)

§

Bounce(<BounceTile<N> as CubeType>::ExpandType)

§

Broadcasted(<Value<N> as CubeType>::ExpandType)

§

None

§

_Phantom(<ScopeMarker<Sc> as CubeType>::ExpandType)

Implementations§

Source§

impl<N: Numeric, Sc: TileScope> TileExpand<N, Sc, ReadWrite>

Source

pub fn __expand_mma_method<L: Numeric, R: Numeric>( self, scope: &mut Scope, lhs: <Tile<L, Sc, ReadWrite> as CubeType>::ExpandType, rhs: <Tile<R, Sc, ReadWrite> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_mma<L: Numeric, R: Numeric>( scope: &mut Scope, this: Self, lhs: <Tile<L, Sc, ReadWrite> as CubeType>::ExpandType, rhs: <Tile<R, Sc, ReadWrite> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source§

impl<E: Float> TileExpand<E, Plane, ReadWrite>

Source

pub fn __expand_row_max_method( self, scope: &mut Scope, acc: <RowWise<E> as CubeType>::ExpandType, base: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_row_sum_method( self, scope: &mut Scope, acc: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_exp_diff_method( self, scope: &mut Scope, rowwise: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_rowwise_scale_method( self, scope: &mut Scope, scale: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_row_max( scope: &mut Scope, this: Self, acc: <RowWise<E> as CubeType>::ExpandType, base: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_row_sum( scope: &mut Scope, this: Self, acc: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_exp_diff( scope: &mut Scope, this: Self, rowwise: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_rowwise_scale( scope: &mut Scope, this: Self, scale: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source§

impl<N: Numeric, Sc: TileScope> TileExpand<N, Sc, ReadWrite>

Source

pub fn __expand_copy_from_method<SE: Numeric, SS: Size, L: Numeric, R: Numeric, A: Numeric, SIO: SliceVisibility>( self, scope: &mut Scope, source: <Tile<SE, Sc, SIO> as CubeType>::ExpandType, ident: StageIdent, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_copy_from<SE: Numeric, SS: Size, L: Numeric, R: Numeric, A: Numeric, SIO: SliceVisibility>( scope: &mut Scope, this: Self, source: <Tile<SE, Sc, SIO> as CubeType>::ExpandType, ident: StageIdent, ) -> <() as CubeType>::ExpandType

Source§

impl<E: Float> TileExpand<E, Plane, ReadWrite>

Source

pub fn __expand_scale_and_mask_method<M: Mask>( self, scope: &mut Scope, scale: <E as CubeType>::ExpandType, mask: <M as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_fill_zero_method( self, scope: &mut Scope, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_scale_and_mask<M: Mask>( scope: &mut Scope, this: Self, scale: <E as CubeType>::ExpandType, mask: <M as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

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

Source§

impl<N: Numeric, Sc: TileScope> TileExpand<N, Sc, ReadWrite>

Source

pub fn __expand_load_mask_from_strided_tile_method<E: Numeric, ES: Size>( self, scope: &mut Scope, tile: <StridedTile<E, ES> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_load_mask_from_strided_tile<E: Numeric, ES: Size>( scope: &mut Scope, this: Self, tile: <StridedTile<E, ES> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source§

impl<Acc: Float> TileExpand<Acc, Plane, ReadWrite>

Source

pub fn __expand_softmax_method<Lhs: Float, M: Mask>( self, scope: &mut Scope, mask: <M as CubeType>::ExpandType, softmaxed_tile: <Tile<Lhs, Plane, ReadWrite> as CubeType>::ExpandType, state: <(RowWise<Acc>, RowWise<Acc>) as CubeType>::ExpandType, head_dim_factor: <Acc as CubeType>::ExpandType, ) -> <RowWise<Acc> as CubeType>::ExpandType

Source

pub fn __expand_scale_mul_method<SM: Float>( self, scope: &mut Scope, scale: <RowWise<SM> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_scale_div_method<SM: Float>( self, scope: &mut Scope, running_state_l: <RowWise<SM> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_write_results_method<DE: Float, DS: Size>( self, scope: &mut Scope, dest: <Tile<DE, Plane, ReadWrite> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_softmax<Lhs: Float, M: Mask>( scope: &mut Scope, this: Self, mask: <M as CubeType>::ExpandType, softmaxed_tile: <Tile<Lhs, Plane, ReadWrite> as CubeType>::ExpandType, state: <(RowWise<Acc>, RowWise<Acc>) as CubeType>::ExpandType, head_dim_factor: <Acc as CubeType>::ExpandType, ) -> <RowWise<Acc> as CubeType>::ExpandType

Source

pub fn __expand_scale_mul<SM: Float>( scope: &mut Scope, this: Self, scale: <RowWise<SM> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_scale_div<SM: Float>( scope: &mut Scope, this: Self, running_state_l: <RowWise<SM> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_write_results<DE: Float, DS: Size>( scope: &mut Scope, this: Self, dest: <Tile<DE, Plane, ReadWrite> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Trait Implementations§

Source§

impl<N: Numeric, Sc: TileScope, IO: SliceVisibility> Clone for TileExpand<N, Sc, IO>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Numeric, Sc: TileScope, IO: SliceVisibility> CubeDebug for TileExpand<N, Sc, IO>

Source§

fn set_debug_name(&self, scope: &mut Scope, name: &'static str)

Set the debug name of this type’s expansion. Should do nothing for types that don’t appear at runtime
Source§

impl<N: Numeric, Sc: TileScope, IO: SliceVisibility> CubeEnum for TileExpand<N, Sc, IO>

Source§

type RuntimeValue = ()

Source§

fn discriminant(&self) -> NativeExpand<i32>

Source§

fn runtime_value(self) -> Self::RuntimeValue

Return the runtime value of this enum, if only one variant has a value. Should return () for all other cases.
Source§

fn discriminant_of(variant_name: &'static str) -> i32

Source§

fn discriminant_of_value(&self, variant_name: &'static str) -> i32

Source§

impl<N: Numeric, Sc: TileScope, IO: SliceVisibility> IntoMut for TileExpand<N, Sc, IO>

Source§

fn into_mut(self, scope: &mut Scope) -> Self

Convert the variable into a potentially new mutable variable in scope, copying if needed.
Source§

impl<E: Numeric, Sc: TileScope, IO: SliceVisibility> MaskExpand for TileExpand<E, Sc, IO>

Source§

fn __expand_should_mask_method( self, scope: &mut Scope, local_pos: <Coords2d as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Auto Trait Implementations§

§

impl<N, Sc, IO> Freeze for TileExpand<N, Sc, IO>

§

impl<N, Sc, IO> RefUnwindSafe for TileExpand<N, Sc, IO>

§

impl<N, Sc, IO> !Send for TileExpand<N, Sc, IO>

§

impl<N, Sc, IO> !Sync for TileExpand<N, Sc, IO>

§

impl<N, Sc, IO> Unpin for TileExpand<N, Sc, IO>
where Sc: Unpin, IO: Unpin, N: Unpin,

§

impl<N, Sc, IO> UnsafeUnpin for TileExpand<N, Sc, IO>

§

impl<N, Sc, IO> UnwindSafe for TileExpand<N, Sc, IO>
where Sc: UnwindSafe, IO: UnwindSafe, N: UnwindSafe,

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<C> CloneExpand for C
where C: Clone,

Source§

fn __expand_clone_method(&self, _scope: &mut Scope) -> C

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoComptime for T

Source§

fn comptime(self) -> Self

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.