Skip to main content

IntGemmArgs

Struct IntGemmArgs 

Source
pub struct IntGemmArgs<'a, T, BT = f32>
where T: IntElement, BT: BiasElement,
{ pub a: MatrixRef<'a, T>, pub b: MatrixRef<'a, T>, pub c: Option<MatrixRef<'a, T>>, pub d: MatrixMut<'a, T>, pub bias: Option<VectorRef<'a, BT>>, pub alpha: f32, pub beta: f32, }
Expand description

Per-launch arguments for an IntGemmPlan::run call.

Parallel to GemmArgs for the integer GEMM family. The matrix operands carry the kernel element type T: IntElement (today: S8 or U8); the optional bias carries the independent bias element type BT: BiasElement (today: f32 or i32). Scalar alpha / beta are always f32 regardless of T or BT — CUTLASS’s LinearCombinationClamp / LinearCombinationBiasElementwise epilogues do the entire alpha/beta/bias/activation chain in float (after int32→float dequant of the accumulator) and saturating-cast back to the int output range on store.

Fields§

§a: MatrixRef<'a, T>

Left input. Row-major [M, K].

§b: MatrixRef<'a, T>

Right input. Column-major [K, N] (RCR).

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

Optional accumulation source. Row-major [M, N].

§d: MatrixMut<'a, T>

Output. Row-major [M, N].

§bias: Option<VectorRef<'a, BT>>

Optional bias vector. Required when the descriptor’s epilogue is any Bias* variant; must be None for EpilogueKind::Identity. Length-N, contiguous (stride 1) device memory; broadcast across rows of D.

§alpha: f32

Multiplier on the matrix-multiply accumulator. Always f32 for int GEMM — CUTLASS does the entire epilogue compute in float space.

§beta: f32

Multiplier on c. Forced to 0 internally when c is None.

Trait Implementations§

Source§

impl<'a, T, BT> Debug for IntGemmArgs<'a, T, BT>
where T: Debug + IntElement, BT: Debug + BiasElement,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T, BT = f32> !UnwindSafe for IntGemmArgs<'a, T, BT>

§

impl<'a, T, BT> Freeze for IntGemmArgs<'a, T, BT>

§

impl<'a, T, BT> RefUnwindSafe for IntGemmArgs<'a, T, BT>

§

impl<'a, T, BT> Send for IntGemmArgs<'a, T, BT>
where T: Sync + Send, BT: Sync,

§

impl<'a, T, BT> Sync for IntGemmArgs<'a, T, BT>
where T: Sync, BT: Sync,

§

impl<'a, T, BT> Unpin for IntGemmArgs<'a, T, BT>

§

impl<'a, T, BT> UnsafeUnpin for IntGemmArgs<'a, T, BT>

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.