pub struct LaunchRequirements {
pub rank: LaunchRank,
pub axis_coordinates: Option<CoordinateWidth>,
pub linear_coordinates: Option<CoordinateWidth>,
pub block: BlockRequirement,
pub shared_memory: SharedMemoryRequirement,
pub min_compute_capability: Option<(u32, u32)>,
pub cluster: Option<Dim3>,
pub cooperative: bool,
}Expand description
Kernel requirements checked against a configuration and its actual context.
Coordinate requirements check the launched extent, including padded threads. Leave them unspecified only when the kernel has no corresponding restriction.
Fields§
§rank: LaunchRankAxes used by the kernel’s indexing scheme. Unused grid and block axes must equal one.
axis_coordinates: Option<CoordinateWidth>Optional integer width bounding the largest launched coordinate on every axis, including padded threads.
linear_coordinates: Option<CoordinateWidth>Optional integer width bounding the largest flattened coordinate across the complete launched grid, including padded threads.
block: BlockRequirementKernel-specific constraints on the block shape or thread count.
Kernel-specific dynamic shared-memory byte requirements per block.
min_compute_capability: Option<(u32, u32)>Minimum device compute capability as (major, minor), or None for no additional minimum.
cluster: Option<Dim3>Required cluster dimensions in blocks, or None for no signature-specific cluster shape.
Native kernel requirements still apply.
cooperative: boolWhether the launch must explicitly enable cooperative execution. A false value also permits cooperative launches when the device supports them.
Implementations§
Trait Implementations§
Source§impl Clone for LaunchRequirements
impl Clone for LaunchRequirements
impl Copy for LaunchRequirements
Source§impl Debug for LaunchRequirements
impl Debug for LaunchRequirements
Source§impl Default for LaunchRequirements
impl Default for LaunchRequirements
impl Eq for LaunchRequirements
Source§impl PartialEq for LaunchRequirements
impl PartialEq for LaunchRequirements
impl StructuralPartialEq for LaunchRequirements
Auto Trait Implementations§
impl Forget for LaunchRequirements
impl Freeze for LaunchRequirements
impl Move for LaunchRequirements
impl RefUnwindSafe for LaunchRequirements
impl Send for LaunchRequirements
impl Sync for LaunchRequirements
impl Unpin for LaunchRequirements
impl UnsafeUnpin for LaunchRequirements
impl UnwindSafe for LaunchRequirements
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.