Skip to main content

BatchedGemmArgs

Struct BatchedGemmArgs 

Source
pub struct BatchedGemmArgs<'a, T>
where T: Element,
{ pub a: MatrixRef<'a, T>, pub stride_a: i64, pub b: MatrixRef<'a, T>, pub stride_b: i64, pub c: Option<MatrixRef<'a, T>>, pub stride_c: i64, pub d: MatrixMut<'a, T>, pub stride_d: i64, pub alpha: <T as Element>::Scalar, pub beta: <T as Element>::Scalar, }
Expand description

Per-launch arguments for a BatchedGemmPlan::run call.

stride_* fields are in elements, not bytes — matching CUTLASS’s GemmBatched API. Pass 0 for stride if the same matrix should be reused across all batches (broadcast).

Fields§

§a: MatrixRef<'a, T>

Left input — base pointer for batch 0.

§stride_a: i64

Element offset between consecutive A batches.

§b: MatrixRef<'a, T>

Right input — base pointer for batch 0.

§stride_b: i64

Element offset between consecutive B batches.

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

Optional accumulation source.

§stride_c: i64

Element offset between consecutive C batches. Ignored when c is None.

§d: MatrixMut<'a, T>

Output — base pointer for batch 0.

§stride_d: i64

Element offset between consecutive D batches.

§alpha: <T as Element>::Scalar

α multiplier (shared across batches). Scalar type matches T::Scalarf32 for f16/bf16/f32/F32Strict, f64 for f64.

§beta: <T as Element>::Scalar

β multiplier (shared across batches). Forced to 0 internally when c is None.

Trait Implementations§

Source§

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

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<'a, T> UnsafeUnpin for BatchedGemmArgs<'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.