pub enum AcceleratorError {
Show 20 variants
BackendUnavailable(String),
DeviceNotFound {
ordinal: usize,
},
BackendMismatch {
expected: u64,
found: u64,
},
PlanMismatch {
expected: u64,
found: u64,
},
AllocationFailed {
bytes: usize,
reason: String,
},
KernelCompilationFailed(String),
ModuleLoadFailed(String),
KernelNotFound(String),
KernelLaunchFailed(String),
InvalidStreamIndex {
index: usize,
stream_count: usize,
},
EventFailed(String),
SparseLibraryFailed(String),
DeviceTransferFailed(String),
StaleTopologyPlan {
expected: u64,
found: u64,
},
StaleAtlasPlan {
expected: u64,
found: u64,
},
StaleGeometryPlan {
expected: u64,
found: u64,
},
LengthMismatch {
expected: usize,
found: usize,
},
IndexOverflow {
what: &'static str,
value: usize,
},
UnsupportedDeviceType(&'static str),
InvalidPlan(String),
}Expand description
Failures produced while compiling or executing an accelerator plan.
Variants§
The requested backend was not compiled in or could not initialize.
DeviceNotFound
No device exists at the requested ordinal.
BackendMismatch
A resource was submitted through a different backend/context than the one that created it.
PlanMismatch
A state was submitted to a different compiled FVM plan.
AllocationFailed
Device allocation failed.
KernelCompilationFailed(String)
Runtime kernel compilation failed.
ModuleLoadFailed(String)
A compiled module could not be loaded.
KernelNotFound(String)
A named kernel was absent from a module.
KernelLaunchFailed(String)
A kernel launch failed.
InvalidStreamIndex
A CUDA stream index was outside the configured stream pool.
EventFailed(String)
A CUDA event operation failed.
SparseLibraryFailed(String)
A CUDA numerical library call failed.
DeviceTransferFailed(String)
A host/device transfer failed.
StaleTopologyPlan
A topology-dependent plan is stale.
StaleAtlasPlan
A section-dependent plan is stale.
StaleGeometryPlan
Geometry changed after plan compilation.
LengthMismatch
Host input has a different length than its device buffer.
IndexOverflow
A count or offset cannot be represented by the device ABI.
UnsupportedDeviceType(&'static str)
The value type cannot be used by the selected device.
InvalidPlan(String)
Packed FVM data is internally inconsistent.
Trait Implementations§
Source§impl Clone for AcceleratorError
impl Clone for AcceleratorError
Source§fn clone(&self) -> AcceleratorError
fn clone(&self) -> AcceleratorError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AcceleratorError
impl Debug for AcceleratorError
Source§impl Display for AcceleratorError
impl Display for AcceleratorError
impl Eq for AcceleratorError
Source§impl Error for AcceleratorError
impl Error for AcceleratorError
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()