pub struct MatmulFeatures {
pub cmma: BTreeSet<MmaConfig>,
pub cube_mma: BTreeSet<CubeMmaConfig>,
pub mma: BTreeSet<MmaConfig>,
pub scaled_mma: BTreeSet<ScaledMmaConfig>,
pub ldmatrix: BTreeSet<StorageType>,
pub stmatrix: BTreeSet<StorageType>,
pub cmma_tensor_addressing: bool,
}Expand description
Matrix multiplication-related features
Fields§
§cmma: BTreeSet<MmaConfig>The cmma feature enables cooperative matrix-multiply and accumulate operations.
cube_mma: BTreeSet<CubeMmaConfig>Cube MMA is like cmma but at the cube level, rather than the plane level.
Loading may be staged in shared memory by the driver on Vulkan - check
cube_mma_reserved_shared_memory
to take this into account when generating a matmul config.
mma: BTreeSet<MmaConfig>The manual MMA feature enables cooperative matrix-multiply with manually managed data movement
scaled_mma: BTreeSet<ScaledMmaConfig>Scaled MMA allows combining matrix multiplication with unscaling quantized values into a single instruction. Scales must fit a specific layout and block size.
ldmatrix: BTreeSet<StorageType>Types supported for ldmatrix, if any
stmatrix: BTreeSet<StorageType>Types supported by stmatrix, if any
cmma_tensor_addressing: boolWhether tensor addressing is supported for CMMA load/store
Trait Implementations§
Source§impl Clone for MatmulFeatures
impl Clone for MatmulFeatures
Source§fn clone(&self) -> MatmulFeatures
fn clone(&self) -> MatmulFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatmulFeatures
impl Debug for MatmulFeatures
Source§impl Default for MatmulFeatures
impl Default for MatmulFeatures
Source§fn default() -> MatmulFeatures
fn default() -> MatmulFeatures
Returns the “default value” for a type. Read more
impl Eq for MatmulFeatures
Source§impl Hash for MatmulFeatures
impl Hash for MatmulFeatures
Source§impl PartialEq for MatmulFeatures
impl PartialEq for MatmulFeatures
impl StructuralPartialEq for MatmulFeatures
Auto Trait Implementations§
impl Freeze for MatmulFeatures
impl RefUnwindSafe for MatmulFeatures
impl Send for MatmulFeatures
impl Sync for MatmulFeatures
impl Unpin for MatmulFeatures
impl UnsafeUnpin for MatmulFeatures
impl UnwindSafe for MatmulFeatures
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more