#[non_exhaustive]pub enum FallbackReason {
CudaFeatureNotBuilt,
DriverRuntimeFailure,
DeviceUnavailable,
UnsupportedHardware,
KernelSpecializationUnavailable,
InvalidInput,
}Expand description
Stable reason code explaining why GPU was not selected (or why a request failed).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CudaFeatureNotBuilt
Built without the cuda Cargo feature (PTX/kernels not compiled in).
DriverRuntimeFailure
CUDA driver/runtime init or post-init stream setup failed.
No accessible CUDA device.
UnsupportedHardware
Device compute capability is below REQUIRED_COMPUTE_CAPABILITY.
Required PTX family or kernel symbol is missing after JIT.
InvalidInput
Caller-supplied launch arguments are invalid.
Implementations§
Trait Implementations§
Source§impl Clone for FallbackReason
impl Clone for FallbackReason
impl Copy for FallbackReason
Source§impl Debug for FallbackReason
impl Debug for FallbackReason
Source§impl Display for FallbackReason
impl Display for FallbackReason
impl Eq for FallbackReason
Source§impl Hash for FallbackReason
impl Hash for FallbackReason
Source§impl PartialEq for FallbackReason
impl PartialEq for FallbackReason
impl StructuralPartialEq for FallbackReason
Auto Trait Implementations§
impl Freeze for FallbackReason
impl RefUnwindSafe for FallbackReason
impl Send for FallbackReason
impl Sync for FallbackReason
impl Unpin for FallbackReason
impl UnsafeUnpin for FallbackReason
impl UnwindSafe for FallbackReason
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