WmmaLoad

Struct WmmaLoad 

Source
pub struct WmmaLoad<D: Dialect> { /* private fields */ }

Implementations§

Source§

impl<D: Dialect> WmmaLoad<D>

Source

pub fn new(frag: Fragment<D>, layout: Option<FragmentLayout<D>>) -> Self

Constructs a new WmmaLoad.

Source§

impl<D: Dialect> WmmaLoad<D>

Source

pub fn fn_name(&self) -> String

Source

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

Matrix A must be in column major layout (so fragments correspond to a row) Matrices B, C and D must be in row major layout (so fragments correspond to a column)

Each lane is a thread so each column get 8 VGPRs used to store fragments Here is the layout for C and D matrices and how they map to registers

§Lane index 0 1 2 3 … 13 14 15 … 17 18 … 30 31
§VGPR0 | 1,1 | 1,2 | 1,3 | 1,4 | … | 1,13 | 1,14 | 1,15 | … | 2,1 | 2,2 | … | 2,15 | 2,16 |
§VGPR1 | 3,1 | 3,2 | 3,3 | 3,4 | … | 3,13 | 3,14 | 3,15 | … | 4,1 | 4,2 | … | 4,15 | 4,16 |
§VGPR2 | 5,1 | 5,2 | 5,3 | 5,4 | … | 5,13 | 5,14 | 5,15 | … | 6,1 | 6,2 | … | 6,15 | 6,16 |
§VGPR3 | 7,1 | 7,2 | 7,3 | 7,4 | … | 7,13 | 7,14 | 7,15 | … | 8,1 | 8,2 | … | 8,15 | 8,16 |
§VGPR4 | 9,1 | 9,2 | 9,3 | 9,4 | … | 9,13 | 9,14 | 9,15 | … | 10,1 | 10,2 | … | 10,15| 10,16|
§VGPR5 | 11,1 | 11,2 | 11,3 | 11,4 | … | 11,13| 11,14| 11,15| … | 12,1 | 12,2 | … | 12,15| 12,16|
§VGPR6 | 13,1 | 13,2 | 13,3 | 13,4 | … | 13,13| 13,14| 13,15| … | 14,1 | 14,2 | … | 14,15| 14,16|
§VGPR7 | 15,1 | 15,2 | 15,3 | 15,4 | … | 15,13| 15,14| 15,15| … | 16,1 | 16,2 | … | 16,15| 16,16|

Trait Implementations§

Source§

impl<D: Clone + Dialect> Clone for WmmaLoad<D>

Source§

fn clone(&self) -> WmmaLoad<D>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<D: Debug + Dialect> Debug for WmmaLoad<D>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<D: PartialEq + Dialect> PartialEq for WmmaLoad<D>

Source§

fn eq(&self, other: &WmmaLoad<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<D: Dialect> StructuralPartialEq for WmmaLoad<D>

Auto Trait Implementations§

§

impl<D> Freeze for WmmaLoad<D>

§

impl<D> RefUnwindSafe for WmmaLoad<D>
where D: RefUnwindSafe,

§

impl<D> Send for WmmaLoad<D>

§

impl<D> Sync for WmmaLoad<D>

§

impl<D> Unpin for WmmaLoad<D>
where D: Unpin,

§

impl<D> UnwindSafe for WmmaLoad<D>
where D: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V