#[non_exhaustive]pub enum AccelError {
ContextPoisoned(String),
OutOfMemory(String),
Unrecoverable(String),
AccelRefStale(&'static str),
Driver(String),
LibraryError {
lib: &'static str,
msg: String,
},
Timeout,
}Expand description
Typed error enum surfaced through every actor reply channel.
Mirrors the original GpuError from rakka-accel-cuda but lives
in the backend-agnostic core. Backends wrap or re-export this as
their public Error associated type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ContextPoisoned(String)
Device context is in a sticky-error state. Triggers
ContextActor restart and a generation bump.
OutOfMemory(String)
Allocation failed but the context is still usable. Supervisor
Resumes the actor.
Unrecoverable(String)
Hardware fault or repeated poisoning past the retry budget.
AccelRefStale(&'static str)
AccelRef::access() was called on a buffer whose context was
rebuilt or whose DeviceActor is shutting down.
Driver(String)
Driver-level error (e.g. cuInit, hipInit, MTLDevice
setup) before any specific library got involved.
LibraryError
Library error tagged with the originating component name —
e.g. "cublas", "cudnn", "cufft", "curand",
"cusolver", "cublaslt", "nvrtc", "nccl", "hipblas",
"rocfft", "mps". Callers that need to discriminate match
on lib.
Timeout
Implementations§
Source§impl AccelError
impl AccelError
Trait Implementations§
Source§impl Debug for AccelError
impl Debug for AccelError
Source§impl Display for AccelError
impl Display for AccelError
Source§impl Error for AccelError
impl Error for AccelError
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()