#[repr(transparent)]pub struct CUclusterSchedulingPolicy_enum(pub c_uint);Expand description
Cluster scheduling policies.
These may be passed to cuFuncSetAttribute or cuKernelSetAttribute.
Tuple Fields§
§0: c_uintImplementations§
Source§impl CUclusterSchedulingPolicy_enum
impl CUclusterSchedulingPolicy_enum
Sourcepub const CU_CLUSTER_SCHEDULING_POLICY_DEFAULT: CUclusterSchedulingPolicy_enum
pub const CU_CLUSTER_SCHEDULING_POLICY_DEFAULT: CUclusterSchedulingPolicy_enum
the default policy.
Sourcepub const CU_CLUSTER_SCHEDULING_POLICY_SPREAD: CUclusterSchedulingPolicy_enum
pub const CU_CLUSTER_SCHEDULING_POLICY_SPREAD: CUclusterSchedulingPolicy_enum
spread the blocks within a cluster to the SMs.
Sourcepub const CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING: CUclusterSchedulingPolicy_enum
pub const CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING: CUclusterSchedulingPolicy_enum
allow the hardware to load-balance the blocks in a cluster to the SMs.
Sourcepub const CU_CLUSTER_SCHEDULING_POLICY_RUBIN_DSMEM_LOCALITY: CUclusterSchedulingPolicy_enum
pub const CU_CLUSTER_SCHEDULING_POLICY_RUBIN_DSMEM_LOCALITY: CUclusterSchedulingPolicy_enum
Spread the blocks within a cluster to the SMs, and prefer placement that prioritizes Distributed Shared Memory locality for Rubin-class GPUs.
This is a preference only. The driver may ignore this request when the launch is not eligible, when the device does not support the requested placement behavior, or when other launch constraints take precedence.
This policy is intended for clustered kernels whose performance depends on communication through Distributed Shared Memory among blocks in the same cluster.
Trait Implementations§
impl Copy for CUclusterSchedulingPolicy_enum
impl Eq for CUclusterSchedulingPolicy_enum
Source§impl Ord for CUclusterSchedulingPolicy_enum
impl Ord for CUclusterSchedulingPolicy_enum
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CUclusterSchedulingPolicy_enum
impl PartialOrd for CUclusterSchedulingPolicy_enum
impl StructuralPartialEq for CUclusterSchedulingPolicy_enum
Auto Trait Implementations§
impl Forget for CUclusterSchedulingPolicy_enum
impl Freeze for CUclusterSchedulingPolicy_enum
impl Move for CUclusterSchedulingPolicy_enum
impl RefUnwindSafe for CUclusterSchedulingPolicy_enum
impl Send for CUclusterSchedulingPolicy_enum
impl Sync for CUclusterSchedulingPolicy_enum
impl Unpin for CUclusterSchedulingPolicy_enum
impl UnsafeUnpin for CUclusterSchedulingPolicy_enum
impl UnwindSafe for CUclusterSchedulingPolicy_enum
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