pub struct CudaKernelLaunchEnvelope {
pub kernel: &'static str,
pub device: CudaKernelDeviceEnvelope,
pub requirement: CudaKernelRequirement,
pub shape: CudaKernelLaunchShape,
pub grid_blocks: u64,
pub threads_per_block: u32,
pub cooperative_resident_block_limit: Option<u64>,
pub diagnostic: CudaKernelLaunchDiagnostic,
}Expand description
Release-path launch envelope: device caps, requested shape, derived residency numbers, and capability diagnostics in one stable record.
Fields§
§kernel: &'static strKernel label supplied by the caller.
device: CudaKernelDeviceEnvelopeProbed device capability envelope.
requirement: CudaKernelRequirementKernel requirement derived from the requested launch shape.
shape: CudaKernelLaunchShapeOriginal launch shape.
grid_blocks: u64Exact grid block count.
threads_per_block: u32Exact CUDA thread count per block.
cooperative_resident_block_limit: Option<u64>Cooperative resident block limit when the cooperative ABI is used.
diagnostic: CudaKernelLaunchDiagnosticCapability diagnostic for the launch.
Implementations§
Source§impl CudaKernelLaunchEnvelope
impl CudaKernelLaunchEnvelope
Sourcepub fn is_launchable(&self) -> bool
pub fn is_launchable(&self) -> bool
Return true when the launch is eligible on the device envelope.
Sourcepub fn stable_message(&self) -> String
pub fn stable_message(&self) -> String
Stable one-line release diagnostic including shape and residency.
Trait Implementations§
Source§impl Clone for CudaKernelLaunchEnvelope
impl Clone for CudaKernelLaunchEnvelope
Source§fn clone(&self) -> CudaKernelLaunchEnvelope
fn clone(&self) -> CudaKernelLaunchEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CudaKernelLaunchEnvelope
impl Debug for CudaKernelLaunchEnvelope
Source§impl PartialEq for CudaKernelLaunchEnvelope
impl PartialEq for CudaKernelLaunchEnvelope
Source§fn eq(&self, other: &CudaKernelLaunchEnvelope) -> bool
fn eq(&self, other: &CudaKernelLaunchEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CudaKernelLaunchEnvelope
impl StructuralPartialEq for CudaKernelLaunchEnvelope
Auto Trait Implementations§
impl Freeze for CudaKernelLaunchEnvelope
impl RefUnwindSafe for CudaKernelLaunchEnvelope
impl Send for CudaKernelLaunchEnvelope
impl Sync for CudaKernelLaunchEnvelope
impl Unpin for CudaKernelLaunchEnvelope
impl UnsafeUnpin for CudaKernelLaunchEnvelope
impl UnwindSafe for CudaKernelLaunchEnvelope
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
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
Compare self to
key and return true if they are equal.