pub enum GpuError {
ContextPoisoned(String),
OutOfMemory(String),
Unrecoverable(String),
GpuRefStale(&'static str),
Driver(String),
Cublas(String),
LibraryError {
lib: &'static str,
msg: String,
},
Timeout,
}Variants§
ContextPoisoned(String)
CUDA context is in a sticky-error state (§5.3). Triggers
ContextActor restart and a generation bump on DeviceState.
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.
GpuRefStale(&'static str)
GpuRef::access() was called on a buffer whose context was
rebuilt or whose DeviceActor is shutting down (§5.8).
Driver(String)
Cublas(String)
👎Deprecated: use GpuError::LibraryError { lib: “cublas”, msg } instead
cuBLAS-specific error. Retained for back-compat — new library
actors should emit GpuError::LibraryError with lib = "cublas"
instead. Will be removed in a future release.
LibraryError
Generic library error tagged with the originating CUDA library
name (e.g. "cudnn", "cufft", "curand", "cusolver",
"cublaslt", "nvrtc", "nccl"). Callers that need to
discriminate library failures match on lib.
Timeout
Implementations§
Trait Implementations§
Source§impl Error for GpuError
impl Error for GpuError
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()
Auto Trait Implementations§
impl Freeze for GpuError
impl RefUnwindSafe for GpuError
impl Send for GpuError
impl Sync for GpuError
impl Unpin for GpuError
impl UnsafeUnpin for GpuError
impl UnwindSafe for GpuError
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