Table of Contents

Enum CudaErrorClass

Namespace
DotCompute.Backends.CUDA.ErrorHandling
Assembly
DotCompute.Backends.CUDA.dll

Severity / recovery classification of a CudaError.

public enum CudaErrorClass

Fields

Fatal = 4

Fatal: 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 = 3

Programmer / configuration error: the call site is wrong; retrying with the same arguments cannot help. Examples: InvalidValue, InvalidConfiguration, NotSupported.

Resource = 2

Resource exhaustion: the operation may succeed after freeing resources or waiting for the device to drain in-flight work. Examples: OOM, LaunchOutOfResources, DevicesUnavailable.

Success = 0

The operation succeeded.

Transient = 1

Transient: 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).