Skip to main content

MmaDefinitionExpand

Struct MmaDefinitionExpand 

Source
pub struct MmaDefinitionExpand<A: RudaType, B: RudaType, CD: RudaType> {
    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 RudaType>::ExpandType, elem_idx: <u32 as RudaType>::ExpandType, ident: MatrixIdent, ) -> <(u32, u32) as RudaType>::ExpandType

Source

pub fn __expand_scales_index_method( &self, scope: &mut Scope, lane_id: <u32 as RudaType>::ExpandType, ident: MatrixIdent, ) -> <u32 as RudaType>::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: RudaPrimitive, NO: Size>( &self, scope: &mut Scope, row: <Slice<E> as RudaType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <Array<Vector<E::Scalar, NO>> as RudaType>::ExpandType ⓘ

Source

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

Source

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

Source

pub fn __expand_execute_method<NA: Size, NB: Size, NC: Size>( &self, scope: &mut Scope, registers_a: <Array<Vector<A, NA>> as RudaType>::ExpandType, registers_b: <Array<Vector<B, NB>> as RudaType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as RudaType>::ExpandType, ) -> <Array<Vector<CD, NC>> as RudaType>::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 RudaType>::ExpandType, registers_b: <Array<Vector<B, NB>> as RudaType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as RudaType>::ExpandType, ) -> <() as RudaType>::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 RudaType>::ExpandType, registers_b: <Array<Vector<B, NB>> as RudaType>::ExpandType, registers_c: <Array<Vector<CD, NC>> as RudaType>::ExpandType, scales_a: <Vector<S, NS> as RudaType>::ExpandType, scales_b: <Vector<S, NS> as RudaType>::ExpandType, ) -> <Array<Vector<CD, NC>> as RudaType>::ExpandType ⓘ

Source

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

Source

pub fn __expand_new_scaled<S: RudaPrimitive>( 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 RudaType>::ExpandType, elem_idx: <u32 as RudaType>::ExpandType, ident: MatrixIdent, ) -> <(u32, u32) as RudaType>::ExpandType

Source

pub fn __expand_scales_index( scope: &mut Scope, this: &Self, lane_id: <u32 as RudaType>::ExpandType, ident: MatrixIdent, ) -> <u32 as RudaType>::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: RudaPrimitive, NO: Size>( scope: &mut Scope, this: &Self, row: <Slice<E> as RudaType>::ExpandType, ident: MatrixIdent, num_matrices: usize, transpose: bool, ) -> <Array<Vector<E::Scalar, NO>> as RudaType>::ExpandType ⓘ

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl<A: RudaType, B: RudaType, CD: RudaType> 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: Debug + RudaType, B: Debug + RudaType, CD: Debug + RudaType> 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: RudaType, B: RudaType, CD: RudaType> 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.
Source§

impl<A: RudaType, B: RudaType, CD: RudaType> RudaDebug 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: RudaType, B: RudaType, CD: RudaType> RudaDebug 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

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>

§

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

§

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

§

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

§

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

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.