pub struct ClusterDim {
pub x: u32,
pub y: u32,
pub z: u32,
}Expand description
Cluster dimensions specifying how many thread blocks form one cluster.
Each dimension specifies the number of blocks in that direction of
the cluster. The total number of blocks in a cluster is
x * y * z.
§Constraints
- All dimensions must be non-zero.
- The total blocks per cluster must not exceed the hardware limit (typically 8 or 16 for Hopper GPUs).
- The grid dimensions must be evenly divisible by the cluster dimensions.
Fields§
§x: u32Number of blocks in the X dimension of the cluster.
y: u32Number of blocks in the Y dimension of the cluster.
z: u32Number of blocks in the Z dimension of the cluster.
Implementations§
Source§impl ClusterDim
impl ClusterDim
Trait Implementations§
Source§impl Clone for ClusterDim
impl Clone for ClusterDim
Source§fn clone(&self) -> ClusterDim
fn clone(&self) -> ClusterDim
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 ClusterDim
impl Debug for ClusterDim
Source§impl Display for ClusterDim
impl Display for ClusterDim
Source§impl Hash for ClusterDim
impl Hash for ClusterDim
Source§impl PartialEq for ClusterDim
impl PartialEq for ClusterDim
impl Copy for ClusterDim
impl Eq for ClusterDim
impl StructuralPartialEq for ClusterDim
Auto Trait Implementations§
impl Freeze for ClusterDim
impl RefUnwindSafe for ClusterDim
impl Send for ClusterDim
impl Sync for ClusterDim
impl Unpin for ClusterDim
impl UnsafeUnpin for ClusterDim
impl UnwindSafe for ClusterDim
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