Enum CudaErrorClass
- Namespace
- DotCompute.Backends.CUDA.ErrorHandling
- Assembly
- DotCompute.Backends.CUDA.dll
Severity / recovery classification of a CudaError.
public enum CudaErrorClass
Fields
Fatal = 4Fatal: the device, driver, or context is in an irrecoverable state. The handler should fail fast and surface to the caller; circuit breaker should open. Examples: IllegalAddress, EccUncorrectable, NoDevice, InitializationError.
Programmer = 3Programmer / configuration error: the call site is wrong; retrying with the same arguments cannot help. Examples: InvalidValue, InvalidConfiguration, NotSupported.
Resource = 2Resource exhaustion: the operation may succeed after freeing resources or waiting for the device to drain in-flight work. Examples: OOM, LaunchOutOfResources, DevicesUnavailable.
Success = 0The operation succeeded.
Transient = 1Transient: retrying the same operation may succeed without any change of state. Examples: NotReady, Timeout, SystemNotReady.
Remarks
Inspired by RustCompute's RingKernelError classification model.
The classification drives retry policy, circuit-breaker decisions, and
caller-side recovery (e.g. release cached buffers and retry on Resource,
surface to user on Fatal, blind retry on Transient).