#[non_exhaustive]pub enum LaunchContractError {
Show 15 variants
ParameterCount {
expected: usize,
actual: usize,
},
ParameterLayout {
index: usize,
expected_offset: usize,
expected_size: usize,
actual_offset: usize,
actual_size: usize,
},
Rank {
rank: LaunchRank,
},
Block {
required: BlockRequirement,
actual: Dim3,
},
Limit {
name: &'static str,
requested: u128,
limit: u128,
},
SharedMemory {
required: SharedMemoryRequirement,
actual: usize,
},
Architecture {
required: (u32, u32),
actual: (u32, u32),
},
Cluster {
required: Option<Dim3>,
actual: Option<Dim3>,
},
ClusterRequired,
ClusterUnsupported,
ClusterGrid {
grid: Dim3,
cluster: Dim3,
},
Cooperative,
SharedMemoryModeUnsupported {
mode: SharedMemoryMode,
},
CoordinateOverflow,
ParameterLayoutOverflow,
}Expand description
Failure to match a kernel’s ABI, indexing or execution requirements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ParameterCount
The native function parameter count differs from the signature.
Fields
ParameterLayout
A native parameter offset or size differs from the signature’s host ABI layout.
Fields
Rank
Nonunit dimensions occur on axes outside the kernel’s indexing rank.
Fields
rank: LaunchRankIndexing rank required by the kernel.
Block
The configured block violates a kernel-specific block requirement.
Fields
required: BlockRequirementKernel-specific block requirement.
Limit
A requested launch quantity exceeds its device, function, or coordinate limit.
Fields
Dynamic shared memory violates the kernel’s byte requirement.
Architecture
The device’s compute capability is below the kernel’s required minimum.
Fields
Cluster
Configured cluster dimensions disagree with the signature or native kernel requirement.
Fields
ClusterRequired
The native function requires an explicit cluster size, but none is available.
ClusterUnsupported
A cluster launch was requested on a device without cluster-launch support.
ClusterGrid
The cluster dimensions are zero or do not divide the grid dimensions.
Fields
Cooperative
A required cooperative attribute is absent, or the device does not support the requested cooperative launch.
An explicit shared-memory mode was requested on a driver that cannot query or support shared-memory modes.
CoordinateOverflow
The product of grid and block volumes cannot be represented in 128 bits.
ParameterLayoutOverflow
Computing a parameter offset or end overflows the host address space.
Trait Implementations§
Source§impl Clone for LaunchContractError
impl Clone for LaunchContractError
Source§impl Debug for LaunchContractError
impl Debug for LaunchContractError
Source§impl Display for LaunchContractError
impl Display for LaunchContractError
impl Eq for LaunchContractError
Source§impl Error for LaunchContractError
impl Error for LaunchContractError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<LaunchContractError> for Error
impl From<LaunchContractError> for Error
Source§fn from(source: LaunchContractError) -> Self
fn from(source: LaunchContractError) -> Self
Source§impl PartialEq for LaunchContractError
impl PartialEq for LaunchContractError
impl StructuralPartialEq for LaunchContractError
Auto Trait Implementations§
impl Forget for LaunchContractError
impl Freeze for LaunchContractError
impl Move for LaunchContractError
impl RefUnwindSafe for LaunchContractError
impl Send for LaunchContractError
impl Sync for LaunchContractError
impl Unpin for LaunchContractError
impl UnsafeUnpin for LaunchContractError
impl UnwindSafe for LaunchContractError
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.