Enum CudaError
- Namespace
- DotCompute.Backends.CUDA.Types.Native
- Assembly
- DotCompute.Backends.CUDA.dll
Enumeration of CUDA error codes returned by the CUDA runtime API and driver API. These error codes provide detailed information about the success or failure of CUDA operations.
public enum CudaError
Fields
CapturedEvent = 66The event was captured in a stream.
CompatNotSupportedOnDevice = 58The operation is not supported on the current device.
ContextIsDestroyed = 202The context is being or has been destroyed.
[SuppressMessage("Design", "CA1069:Enums values should not be duplicated", Justification = "NVIDIA CUDA API defines both LaunchFailure and Deinitialized with value 4 for historical reasons")] Deinitialized = 4The driver API context has been deinitialized.
DeviceAlreadyInUse = 33The device is already in use.
All CUDA-capable devices are busy or unavailable.
DuplicateSurfaceName = 26A surface with the same name already exists.
DuplicateTextureName = 25A texture with the same name already exists.
DuplicateVariableName = 24A global with the same name already exists.
EccUncorrectable = 214An uncorrectable ECC error was detected during execution. This indicates a hardware problem that cannot be automatically corrected.
FileNotFound = 50The file is not found.
GraphExecUpdateFailure = 69The graph execution update failed.
HardwareStackError = 215A hardware stack error occurred. This indicates a problem with the hardware stack management system.
HostMemoryAlreadyRegistered = 218The host memory is already registered with CUDA.
IllegalAddress = 42An illegal memory access was encountered.
IllegalInstruction = 216An illegal instruction was encountered during kernel execution. This indicates a problem with the kernel code or compilation.
IncompatibleDriverContext = 30The driver context is incompatible with the current context.
InitializationError = 3The CUDA driver and runtime could not be initialized.
InsufficientDriver = 22The installed CUDA driver is insufficient for the CUDA runtime version.
InvalidChannelDescriptor = 15The channel descriptor is invalid.
InvalidConfiguration = 8The launch configuration is invalid.
InvalidContext = 201The context handle is invalid or has been destroyed.
InvalidDevice = 9The device ordinal supplied by the user does not correspond to a valid CUDA device.
InvalidDeviceFunction = 7The device function being invoked is not defined.
InvalidDevicePointer = 12The specified device pointer is invalid.
InvalidFilterSetting = 17The filter setting is invalid.
InvalidGraphicsContext = 46The device kernel source is invalid.
InvalidHandle = 39The resource handle is invalid.
InvalidHostPointer = 11The specified host pointer is invalid.
InvalidKernelImage = 28The device kernel image is invalid.
InvalidMemcpyChannelDesc = 16The direction of the memory copy is invalid.
InvalidMemcpyDirection = 10One or more parameters passed to the API call are not valid memory copy directions.
InvalidNormSetting = 18The normalization setting is invalid.
InvalidPtx = 45A PTX compilation failed.
InvalidResourceHandle = 54The resource handle is invalid.
InvalidSource = 49The device kernel source is invalid.
InvalidSurface = 23The surface is not bound.
InvalidTexture = 13The texture is not bound.
InvalidTextureBinding = 14The texture binding is invalid.
InvalidValue = 1One or more parameters passed to the API call are not within an acceptable range of values.
JitCompilerNotFound = 48PTX JIT compiler is not available.
LaunchFailed = 4Alias for LaunchFailure - An exception occurred on the device while executing a kernel.
LaunchFailure = 4An exception occurred on the device while executing a kernel.
LaunchIncompatibleTexturing = 43A kernel launch is being performed with incompatible texturing mode.
LaunchOutOfResources = 6The kernel launch failed due to insufficient resources.
LaunchTimeout = 5The kernel launch timed out.
MemoryAllocation = 2The memory allocation operation failed due to insufficient memory.
MemoryValueTooLarge = 21The memory value is too large.
MissingConfiguration = 8Missing launch configuration.
MixedDeviceExecution = 19The operation attempted to mix device and non-device execution.
NoDevice = 38No CUDA-capable device is available.
NoKernelImageForDevice = 29There is no kernel image available that is suitable for the device.
NotFound = 40The resource was not found.
NotInitialized = 3The CUDA driver and runtime could not be initialized (alias for InitializationError).
NotPermitted = 800The operation is not permitted in this context.
NotReady = 41The resource is not ready for the requested operation.
NotSupported = 55The operation is not supported.
NotYetImplemented = 20The operation is not yet implemented.
NvlinkUncorrectable = 47A hardware error occurred that cannot be corrected.
OperatingSystem = 53An OS call failed.
[SuppressMessage("Design", "CA1069:Enums values should not be duplicated", Justification = "NVIDIA CUDA API defines both MemoryAllocation and OutOfMemory with value 2 as equivalent error codes")] OutOfMemory = 2The system is out of memory.
PeerAccessAlreadyEnabled = 31Peer access has already been enabled from the current device.
PeerAccessNotEnabled = 32Peer access has not been enabled from the current device.
PeerAccessUnsupported = 44Peer access is not supported across the given devices.
ProfilerAlreadyStarted = 36The profiler has already been started.
ProfilerAlreadyStopped = 37The profiler has already been stopped.
ProfilerDisabled = 34The profiler is disabled.
ProfilerNotInitialized = 35The profiler is not initialized.
Initialization of a shared object failed.
A required symbol was not found in the shared object.
StreamCaptureImplicit = 65An implicit stream capture error occurred.
StreamCaptureInvalidated = 60The stream capture was invalidated.
StreamCaptureIsolation = 64A stream capture isolation error occurred.
StreamCaptureMerge = 61A stream capture merge operation was attempted.
StreamCaptureUnjoined = 63The stream capture operation was unjoined.
StreamCaptureUnmatched = 62The stream capture operation was unmatched.
StreamCaptureUnsupported = 59Stream capture is not supported.
StreamCaptureWrongThread = 67Stream capture was called from the wrong thread.
Success = 0The operation completed successfully.
SystemDriverMismatch = 57The system driver and CUDA driver are not compatible.
SystemNotReady = 56The system is not ready.
Timeout = 68The operation timed out.
TimeoutExpired = 68The operation has timed out (alias for Timeout).
TooManyPeers = 217Too many peer-to-peer connections have been established.
Unknown = 999An unknown error occurred.
Remarks
CUDA error codes are used throughout the CUDA APIs to indicate the status of operations. A return value of Success indicates that the operation completed successfully, while any other value indicates a specific type of error or failure condition.