pub struct CooperativeMatrixProperties {
pub m_size: u32,
pub n_size: u32,
pub k_size: u32,
pub ab_type: CooperativeScalarType,
pub cr_type: CooperativeScalarType,
pub saturating_accumulation: bool,
}Expand description
Describes a supported cooperative matrix configuration.
Cooperative matrices perform the operation C = A * B + C where:
Ais an M×K matrixBis a K×N matrixCis an M×N matrix (both input accumulator and output)
Fields§
§m_size: u32Number of rows in matrices A and C (M dimension)
n_size: u32Number of columns in matrices B and C (N dimension)
k_size: u32Number of columns in A / rows in B (K dimension)
ab_type: CooperativeScalarTypeElement type for input matrices A and B
cr_type: CooperativeScalarTypeElement type for accumulator matrix C and the result
saturating_accumulation: boolWhether saturating accumulation is supported.
When true, the multiply-add operation clamps the result to prevent overflow.
Trait Implementations§
Source§impl Clone for CooperativeMatrixProperties
impl Clone for CooperativeMatrixProperties
Source§fn clone(&self) -> CooperativeMatrixProperties
fn clone(&self) -> CooperativeMatrixProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CooperativeMatrixProperties
impl Debug for CooperativeMatrixProperties
Source§impl Hash for CooperativeMatrixProperties
impl Hash for CooperativeMatrixProperties
impl Copy for CooperativeMatrixProperties
impl Eq for CooperativeMatrixProperties
impl StructuralPartialEq for CooperativeMatrixProperties
Auto Trait Implementations§
impl Freeze for CooperativeMatrixProperties
impl RefUnwindSafe for CooperativeMatrixProperties
impl Send for CooperativeMatrixProperties
impl Sync for CooperativeMatrixProperties
impl Unpin for CooperativeMatrixProperties
impl UnwindSafe for CooperativeMatrixProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more