pub enum LaunchError {
BlockSizeExceedsLimit {
requested: u32,
max: u32,
},
GridSizeExceedsLimit {
requested: u32,
max: u32,
},
SharedMemoryExceedsLimit {
requested: u32,
max: u32,
},
InvalidDimension {
dim: &'static str,
value: u32,
},
}Expand description
Error type for launch parameter validation.
These variants describe specific constraint violations that would cause a kernel launch to fail at the driver level.
Variants§
BlockSizeExceedsLimit
The total number of threads per block exceeds the device maximum.
GridSizeExceedsLimit
A grid dimension exceeds the device maximum.
Fields
The requested dynamic shared memory exceeds the device maximum.
InvalidDimension
A dimension value is invalid (e.g., zero).
Trait Implementations§
Source§impl Clone for LaunchError
impl Clone for LaunchError
Source§fn clone(&self) -> LaunchError
fn clone(&self) -> LaunchError
Returns a duplicate of the value. Read more
1.0.0 · 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 LaunchError
impl Debug for LaunchError
Source§impl Display for LaunchError
impl Display for LaunchError
Source§impl Error for LaunchError
impl Error for LaunchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for LaunchError
impl PartialEq for LaunchError
impl Eq for LaunchError
impl StructuralPartialEq for LaunchError
Auto Trait Implementations§
impl Freeze for LaunchError
impl RefUnwindSafe for LaunchError
impl Send for LaunchError
impl Sync for LaunchError
impl Unpin for LaunchError
impl UnsafeUnpin for LaunchError
impl UnwindSafe for LaunchError
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