#[repr(transparent)]pub struct cudaClusterSchedulingPolicy(pub c_uint);Expand description
Cluster scheduling policies.
These may be passed to cudaFuncSetAttribute.
Tuple Fields§
§0: c_uintImplementations§
Source§impl cudaClusterSchedulingPolicy
impl cudaClusterSchedulingPolicy
Sourcepub const cudaClusterSchedulingPolicyDefault: cudaClusterSchedulingPolicy
pub const cudaClusterSchedulingPolicyDefault: cudaClusterSchedulingPolicy
the default policy.
Sourcepub const cudaClusterSchedulingPolicySpread: cudaClusterSchedulingPolicy
pub const cudaClusterSchedulingPolicySpread: cudaClusterSchedulingPolicy
spread the blocks within a cluster to the SMs.
Sourcepub const cudaClusterSchedulingPolicyLoadBalancing: cudaClusterSchedulingPolicy
pub const cudaClusterSchedulingPolicyLoadBalancing: cudaClusterSchedulingPolicy
allow the hardware to load-balance the blocks in a cluster to the SMs.
Sourcepub const cudaClusterSchedulingPolicyRubinDsmemLocality: cudaClusterSchedulingPolicy
pub const cudaClusterSchedulingPolicyRubinDsmemLocality: cudaClusterSchedulingPolicy
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 runtime or 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§
Source§impl Clone for cudaClusterSchedulingPolicy
impl Clone for cudaClusterSchedulingPolicy
impl Copy for cudaClusterSchedulingPolicy
Source§impl Debug for cudaClusterSchedulingPolicy
impl Debug for cudaClusterSchedulingPolicy
impl Eq for cudaClusterSchedulingPolicy
Source§impl Hash for cudaClusterSchedulingPolicy
impl Hash for cudaClusterSchedulingPolicy
Source§impl Ord for cudaClusterSchedulingPolicy
impl Ord for cudaClusterSchedulingPolicy
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 cudaClusterSchedulingPolicy
impl PartialOrd for cudaClusterSchedulingPolicy
impl StructuralPartialEq for cudaClusterSchedulingPolicy
Auto Trait Implementations§
impl Forget for cudaClusterSchedulingPolicy
impl Freeze for cudaClusterSchedulingPolicy
impl Move for cudaClusterSchedulingPolicy
impl RefUnwindSafe for cudaClusterSchedulingPolicy
impl Send for cudaClusterSchedulingPolicy
impl Sync for cudaClusterSchedulingPolicy
impl Unpin for cudaClusterSchedulingPolicy
impl UnsafeUnpin for cudaClusterSchedulingPolicy
impl UnwindSafe for cudaClusterSchedulingPolicy
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