Skip to main content

MmaDefinitionExpand

Struct MmaDefinitionExpand 

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

Expand type of MmaDefinition.

Fields§

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

Implementations§

Source§

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

Source

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

Source

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

Source

pub fn __expand_vectors_per_lane_method( &self, scope: &mut Scope, ident: MatrixIdent, ) -> usize

Source

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

Source

pub fn __expand_vector_size_method( &self, scope: &mut Scope, ident: MatrixIdent, ) -> VectorSize

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) -> usize

Source

pub fn __expand_scales_vector_size_method( &self, scope: &mut Scope, ) -> VectorSize

Source

pub fn __expand_load_matrix_method<E: CubePrimitive, NO: Size>( &self, scope: &mut Scope, row: <Slice<E> as CubeType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <Array<Vector<E::Scalar, NO>> as CubeType>::ExpandType

Source

pub fn __expand_load_matrix_inplace_method<E: Scalar, N: Size>( &self, scope: &mut Scope, row: <Slice<E> as CubeType>::ExpandType, fragment: <Array<Vector<E, N>> as CubeType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_store_matrix_method<E: CubePrimitive, N: Size>( &self, scope: &mut Scope, row: <Slice<E, ReadWrite> as CubeType>::ExpandType, registers: <Array<Vector<E::Scalar, N>> as CubeType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_execute_method<NA: Size, NB: Size, NC: Size>( &self, scope: &mut Scope, registers_a: <Array<Vector<A, NA>> as CubeType>::ExpandType, registers_b: <Array<Vector<B, NB>> as CubeType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as CubeType>::ExpandType, ) -> <Array<Vector<CD, NC>> as CubeType>::ExpandType

Source

pub fn __expand_execute_inplace_method<NA: Size, NB: Size, NC: Size>( &self, scope: &mut Scope, registers_a: <Array<Vector<A, NA>> as CubeType>::ExpandType, registers_b: <Array<Vector<B, NB>> as CubeType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_execute_scaled_method<S: Scalar, NA: Size, NB: Size, NC: Size, NS: Size>( &self, scope: &mut Scope, registers_a: <Array<Vector<A, NA>> as CubeType>::ExpandType, registers_b: <Array<Vector<B, NB>> as CubeType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as CubeType>::ExpandType, scales_a: <Vector<S, NS> as CubeType>::ExpandType, scales_b: <Vector<S, NS> as CubeType>::ExpandType, ) -> <Array<Vector<CD, NC>> as CubeType>::ExpandType

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

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) -> usize

Source

pub fn __expand_scales_vector_size(scope: &mut Scope, this: &Self) -> VectorSize

Source

pub fn __expand_load_matrix<E: CubePrimitive, NO: Size>( scope: &mut Scope, this: &Self, row: <Slice<E> as CubeType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <Array<Vector<E::Scalar, NO>> as CubeType>::ExpandType

Source

pub fn __expand_load_matrix_inplace<E: Scalar, N: Size>( scope: &mut Scope, this: &Self, row: <Slice<E> as CubeType>::ExpandType, fragment: <Array<Vector<E, N>> as CubeType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_store_matrix<E: CubePrimitive, N: Size>( scope: &mut Scope, this: &Self, row: <Slice<E, ReadWrite> as CubeType>::ExpandType, registers: <Array<Vector<E::Scalar, N>> as CubeType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_execute<NA: Size, NB: Size, NC: Size>( scope: &mut Scope, this: &Self, registers_a: <Array<Vector<A, NA>> as CubeType>::ExpandType, registers_b: <Array<Vector<B, NB>> as CubeType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as CubeType>::ExpandType, ) -> <Array<Vector<CD, NC>> as CubeType>::ExpandType

Source

pub fn __expand_execute_inplace<NA: Size, NB: Size, NC: Size>( scope: &mut Scope, this: &Self, registers_a: <Array<Vector<A, NA>> as CubeType>::ExpandType, registers_b: <Array<Vector<B, NB>> as CubeType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

pub fn __expand_execute_scaled<S: Scalar, NA: Size, NB: Size, NC: Size, NS: Size>( scope: &mut Scope, this: &Self, registers_a: <Array<Vector<A, NA>> as CubeType>::ExpandType, registers_b: <Array<Vector<B, NB>> as CubeType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as CubeType>::ExpandType, scales_a: <Vector<S, NS> as CubeType>::ExpandType, scales_b: <Vector<S, NS> as CubeType>::ExpandType, ) -> <Array<Vector<CD, NC>> 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 (const: unstable) · 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: 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

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

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> UnsafeUnpin for MmaDefinitionExpand<A, B, CD>

§

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

impl<T> TuneInputs for T
where T: Clone + Send + Sync + 'static,

Source§

type At<'a> = T

The concrete input type at lifetime 'a.