#[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 atomr-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.