Skip to main content

GroupedProblem

Struct GroupedProblem 

Source
pub struct GroupedProblem<'a, T: Element> {
    pub m: i32,
    pub n: i32,
    pub k: i32,
    pub a: MatrixRef<'a, T>,
    pub b: MatrixRef<'a, T>,
    pub c: Option<MatrixRef<'a, T>>,
    pub d: MatrixMut<'a, T>,
    pub alpha: T::Scalar,
    pub beta: T::Scalar,
}
Expand description

One per-group entry for a grouped GEMM launch.

Each group has its own shape and pointers; CUTLASS dispatches them in a single kernel invocation. Passed as a slice to GroupedGemmPlan::prepare, which returns a PreparedGroupedGemm whose run method performs the launch.

Fields§

§m: i32

Group M.

§n: i32

Group N.

§k: i32

Group K.

§a: MatrixRef<'a, T>

Left input.

§b: MatrixRef<'a, T>

Right input.

§c: Option<MatrixRef<'a, T>>

Optional accumulation source.

§d: MatrixMut<'a, T>

Output.

§alpha: T::Scalar

α for this group. Scalar type matches T::Scalarf32 for f16/bf16/f32/F32Strict, f64 for f64.

§beta: T::Scalar

β for this group. Forced to 0 internally when c is None.

Trait Implementations§

Source§

impl<'a, T: Debug + Element> Debug for GroupedProblem<'a, T>
where T::Scalar: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T> !UnwindSafe for GroupedProblem<'a, T>

§

impl<'a, T> Freeze for GroupedProblem<'a, T>
where <T as Element>::Scalar: Freeze,

§

impl<'a, T> RefUnwindSafe for GroupedProblem<'a, T>

§

impl<'a, T> Send for GroupedProblem<'a, T>
where <T as Element>::Scalar: Send, T: Sync + Send,

§

impl<'a, T> Sync for GroupedProblem<'a, T>
where <T as Element>::Scalar: Sync, T: Sync,

§

impl<'a, T> Unpin for GroupedProblem<'a, T>
where <T as Element>::Scalar: Unpin,

§

impl<'a, T> UnsafeUnpin for GroupedProblem<'a, T>
where <T as Element>::Scalar: UnsafeUnpin,

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.