#[repr(u32)]pub enum CuTensorMapSwizzle {
None = 0,
B32 = 1,
B64 = 2,
B128 = 3,
}Expand description
Swizzle pattern applied to shared-memory tiles.
Swizzling re-maps addresses within the tile to avoid shared-memory bank conflicts. Choose based on the tile width and element type.
Variants§
None = 0
No swizzle (row-major, bank conflicts possible).
B32 = 1
32-byte swizzle sector.
B64 = 2
64-byte swizzle sector.
B128 = 3
128-byte swizzle sector. Default for most f16/bf16 workloads.
Trait Implementations§
Source§impl Clone for CuTensorMapSwizzle
impl Clone for CuTensorMapSwizzle
Source§fn clone(&self) -> CuTensorMapSwizzle
fn clone(&self) -> CuTensorMapSwizzle
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 CuTensorMapSwizzle
impl Debug for CuTensorMapSwizzle
Source§impl Hash for CuTensorMapSwizzle
impl Hash for CuTensorMapSwizzle
Source§impl PartialEq for CuTensorMapSwizzle
impl PartialEq for CuTensorMapSwizzle
impl Copy for CuTensorMapSwizzle
impl Eq for CuTensorMapSwizzle
impl StructuralPartialEq for CuTensorMapSwizzle
Auto Trait Implementations§
impl Freeze for CuTensorMapSwizzle
impl RefUnwindSafe for CuTensorMapSwizzle
impl Send for CuTensorMapSwizzle
impl Sync for CuTensorMapSwizzle
impl Unpin for CuTensorMapSwizzle
impl UnsafeUnpin for CuTensorMapSwizzle
impl UnwindSafe for CuTensorMapSwizzle
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