MmaDefinitionExpand

Struct MmaDefinitionExpand 

Source
pub struct MmaDefinitionExpand<A: CubeType, B: CubeType, CD: CubeType> {
    pub m: u32,
    pub n: u32,
    pub k: u32,
    pub a_type: StorageType,
    pub b_type: StorageType,
    pub cd_type: StorageType,
    pub scales_factor: Option<u32>,
    pub scales_type: Option<StorageType>,
    /* private fields */
}
Expand description

Expand type of MmaDefinition.

Fields§

§m: u32§n: u32§k: u32§a_type: StorageType§b_type: StorageType§cd_type: StorageType§scales_factor: Option<u32>§scales_type: Option<StorageType>

Implementations§

Source§

impl<A: CubePrimitive, B: CubePrimitive, CD: CubePrimitive> MmaDefinitionExpand<A, B, CD>

Source

pub fn __expand_num_elems_method( self, scope: &mut Scope, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_elems_per_lane_method( self, scope: &mut Scope, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_lines_per_lane_method( self, scope: &mut Scope, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_line_layout_method( self, scope: &mut Scope, ident: MatrixIdent, ) -> MatrixLayout

Source

pub fn __expand_line_size_method( self, scope: &mut Scope, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_position_of_nth_method( self, scope: &mut Scope, lane_id: <u32 as CubeType>::ExpandType, elem_idx: <u32 as CubeType>::ExpandType, ident: MatrixIdent, ) -> <(u32, u32) as CubeType>::ExpandType

Source

pub fn __expand_scales_index_method( self, scope: &mut Scope, lane_id: <u32 as CubeType>::ExpandType, ident: MatrixIdent, ) -> <u32 as CubeType>::ExpandType

Source

pub fn __expand_scales_count_method(self, scope: &mut Scope) -> u32

Source

pub fn __expand_scales_line_size_method(self, scope: &mut Scope) -> u32

Source

pub fn __expand_execute_method( self, scope: &mut Scope, registers_a: <Sequence<Line<A>> as CubeType>::ExpandType, registers_b: <Sequence<Line<B>> as CubeType>::ExpandType, registers_c: <Sequence<Line<CD>> as CubeType>::ExpandType, ) -> <Array<Line<CD>> as CubeType>::ExpandType

Source

pub fn __expand_execute_scaled_method<S: CubePrimitive>( self, scope: &mut Scope, registers_a: <Sequence<Line<A>> as CubeType>::ExpandType, registers_b: <Sequence<Line<B>> as CubeType>::ExpandType, registers_c: <Sequence<Line<CD>> as CubeType>::ExpandType, scales_a: <Line<S> as CubeType>::ExpandType, scales_b: <Line<S> as CubeType>::ExpandType, ) -> <Array<Line<CD>> as CubeType>::ExpandType

Source

pub fn __expand_new(scope: &mut Scope, m: u32, n: u32, k: u32) -> Self

Source

pub fn __expand_new_scaled<S: CubePrimitive>( scope: &mut Scope, m: u32, n: u32, k: u32, scale_factor: u32, ) -> Self

Source

pub fn __expand_num_elems( scope: &mut Scope, this: Self, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_elems_per_lane( scope: &mut Scope, this: Self, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_lines_per_lane( scope: &mut Scope, this: Self, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_line_layout( scope: &mut Scope, this: Self, ident: MatrixIdent, ) -> MatrixLayout

Source

pub fn __expand_line_size( scope: &mut Scope, this: Self, ident: MatrixIdent, ) -> u32

Source

pub fn __expand_position_of_nth( scope: &mut Scope, this: Self, lane_id: <u32 as CubeType>::ExpandType, elem_idx: <u32 as CubeType>::ExpandType, ident: MatrixIdent, ) -> <(u32, u32) as CubeType>::ExpandType

Source

pub fn __expand_scales_index( scope: &mut Scope, this: Self, lane_id: <u32 as CubeType>::ExpandType, ident: MatrixIdent, ) -> <u32 as CubeType>::ExpandType

Source

pub fn __expand_scales_count(scope: &mut Scope, this: Self) -> u32

Source

pub fn __expand_scales_line_size(scope: &mut Scope, this: Self) -> u32

Source

pub fn __expand_execute( scope: &mut Scope, this: Self, registers_a: <Sequence<Line<A>> as CubeType>::ExpandType, registers_b: <Sequence<Line<B>> as CubeType>::ExpandType, registers_c: <Sequence<Line<CD>> as CubeType>::ExpandType, ) -> <Array<Line<CD>> as CubeType>::ExpandType

Source

pub fn __expand_execute_scaled<S: CubePrimitive>( scope: &mut Scope, this: Self, registers_a: <Sequence<Line<A>> as CubeType>::ExpandType, registers_b: <Sequence<Line<B>> as CubeType>::ExpandType, registers_c: <Sequence<Line<CD>> as CubeType>::ExpandType, scales_a: <Line<S> as CubeType>::ExpandType, scales_b: <Line<S> as CubeType>::ExpandType, ) -> <Array<Line<CD>> as CubeType>::ExpandType

Trait Implementations§

Source§

impl<A: CubeType, B: CubeType, CD: CubeType> Clone for MmaDefinitionExpand<A, B, CD>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<A: CubeType, B: CubeType, CD: CubeType> CubeDebug for MmaDefinitionExpand<A, B, CD>

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<A: Debug + CubeType, B: Debug + CubeType, CD: Debug + CubeType> Debug for MmaDefinitionExpand<A, B, CD>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A: CubeType, B: CubeType, CD: CubeType> IntoMut for MmaDefinitionExpand<A, B, CD>

Source§

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

Auto Trait Implementations§

§

impl<A, B, CD> Freeze for MmaDefinitionExpand<A, B, CD>

§

impl<A, B, CD> RefUnwindSafe for MmaDefinitionExpand<A, B, CD>

§

impl<A, B, CD> Send for MmaDefinitionExpand<A, B, CD>
where A: Send, B: Send, CD: Send,

§

impl<A, B, CD> Sync for MmaDefinitionExpand<A, B, CD>
where A: Sync, B: Sync, CD: Sync,

§

impl<A, B, CD> Unpin for MmaDefinitionExpand<A, B, CD>
where A: Unpin, B: Unpin, CD: Unpin,

§

impl<A, B, CD> UnwindSafe for MmaDefinitionExpand<A, B, CD>
where A: UnwindSafe, B: UnwindSafe, CD: 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<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> 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.
Source§

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

Source§

fn vzip(self) -> V