pub struct TensorMap(/* private fields */);Expand description
A 128-byte TMA descriptor, aligned as the driver requires.
Implementations§
Source§impl TensorMap
impl TensorMap
Sourcepub fn tiled_2d_bf16(
global: DevicePtr,
rows: u64,
cols: u64,
row_stride_elems: u64,
box_rows: u32,
box_cols: u32,
) -> Result<Self>
pub fn tiled_2d_bf16( global: DevicePtr, rows: u64, cols: u64, row_stride_elems: u64, box_rows: u32, box_cols: u32, ) -> Result<Self>
Describe a row-major bf16 matrix as tiles of box_rows x box_cols.
rows/cols and row_stride_elems are in ELEMENTS, in the row-major
terms the rest of the codebase uses; the fastest-varying-first ordering
the driver wants is applied here so callers never have to think about it.
row_stride_elems is the distance between consecutive rows and may
exceed cols (a view into a wider tensor).
Loads of tiles that hang off the end are ZERO-FILLED by hardware, so the caller does not predicate the tail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TensorMap
impl RefUnwindSafe for TensorMap
impl Send for TensorMap
impl Sync for TensorMap
impl Unpin for TensorMap
impl UnwindSafe for TensorMap
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