Class CudaErrorClassification
- Namespace
- DotCompute.Backends.CUDA.ErrorHandling
- Assembly
- DotCompute.Backends.CUDA.dll
Classification helpers for CudaError.
public static class CudaErrorClassification
- Inheritance
-
CudaErrorClassification
- Inherited Members
Methods
Classify(CudaError)
Returns the recovery classification for a CUDA error code.
public static CudaErrorClass Classify(this CudaError error)
Parameters
errorCudaError
Returns
IsFatal(CudaError)
True if the error indicates an irrecoverable device or driver state. The circuit breaker should open and the operation should fail fast.
public static bool IsFatal(this CudaError error)
Parameters
errorCudaError
Returns
IsProgrammerError(CudaError)
True if the error indicates a caller / configuration mistake (no point retrying with the same arguments).
public static bool IsProgrammerError(this CudaError error)
Parameters
errorCudaError
Returns
IsRecoverable(CudaError)
True if the error may succeed when retried after waiting briefly, without releasing any resources. Equivalent to Transient.
public static bool IsRecoverable(this CudaError error)
Parameters
errorCudaError
Returns
IsResource(CudaError)
True if the error stems from resource exhaustion (memory, device slots, etc.). Caller should free what it can and retry.
public static bool IsResource(this CudaError error)
Parameters
errorCudaError
Returns
IsRetryable(CudaError)
True if the operation is safe to retry — either transient or resource-bounded. Resource errors are retryable when paired with a cleanup strategy.
public static bool IsRetryable(this CudaError error)
Parameters
errorCudaError