public interface CudaError
CudaError
interface defines the possible values of CudaException.code
.Modifier and Type | Field and Description |
---|---|
static int |
Assert
An assert triggered in device code during kernel execution.
|
static int |
CudartUnloading
This indicates that a CUDA Runtime API call cannot be executed because
it is being called during process shut down, at a point in time after
CUDA driver has been unloaded.
|
static int |
DeviceAlreadyInUse
This indicates that a call tried to access an exclusive-thread device that
is already in use by a different thread.
|
static int |
DevicesUnavailable
This indicates that all CUDA devices are busy or unavailable at the current
time.
|
static int |
DuplicateSurfaceName
This indicates that multiple surfaces (across separate CUDA source
files in the application) share the same string name.
|
static int |
DuplicateTextureName
This indicates that multiple textures (across separate CUDA source
files in the application) share the same string name.
|
static int |
DuplicateVariableName
This indicates that multiple global or constant variables (across separate
CUDA source files in the application) share the same string name.
|
static int |
ECCUncorrectable
This indicates that an uncorrectable ECC error was detected during
execution.
|
static int |
HostMemoryAlreadyRegistered
This error indicates that the memory range passed to ::cudaHostRegister()
has already been registered.
|
static int |
HostMemoryNotRegistered
This error indicates that the pointer passed to ::cudaHostUnregister()
does not correspond to any currently registered memory region.
|
static int |
IncompatibleDriverContext
This indicates that the current context is not compatible with this
the CUDA Runtime.
|
static int |
InitializationError
The API call failed because the CUDA driver and runtime could not be
initialized.
|
static int |
InsufficientDriver
This indicates that the installed NVIDIA CUDA driver is older than the
CUDA runtime library.
|
static int |
InvalidChannelDescriptor
This indicates that the channel descriptor passed to the API call is not
valid.
|
static int |
InvalidConfiguration
This indicates that a kernel launch is requesting resources that can
never be satisfied by the current device.
|
static int |
InvalidDevice
This indicates that the device ordinal supplied by the user does not
correspond to a valid CUDA device.
|
static int |
InvalidDeviceFunction
The requested device function does not exist or is not compiled for the
proper device architecture.
|
static int |
InvalidDevicePointer
This indicates that at least one device pointer passed to the API call is
not a valid device pointer.
|
static int |
InvalidFilterSetting
This indicates that a non-float texture was being accessed with linear
filtering.
|
static int |
InvalidHostPointer
This indicates that at least one host pointer passed to the API call is
not a valid host pointer.
|
static int |
InvalidKernelImage
This indicates that the device kernel image is invalid.
|
static int |
InvalidMemcpyDirection
This indicates that the direction of the memcpy passed to the API call is
not one of the types specified by ::cudaMemcpyKind.
|
static int |
InvalidNormSetting
This indicates that an attempt was made to read a non-float texture as a
normalized float.
|
static int |
InvalidPitchValue
This indicates that one or more of the pitch-related parameters passed
to the API call is not within the acceptable range for pitch.
|
static int |
InvalidResourceHandle
This indicates that a resource handle passed to the API call was not
valid.
|
static int |
InvalidSurface
This indicates that the surface passed to the API call is not a valid
surface.
|
static int |
InvalidSymbol
This indicates that the symbol name/identifier passed to the API call
is not a valid name or identifier.
|
static int |
InvalidTexture
This indicates that the texture passed to the API call is not a valid
texture.
|
static int |
InvalidTextureBinding
This indicates that the texture binding is not valid.
|
static int |
InvalidValue
This indicates that one or more of the parameters passed to the API call
is not within an acceptable range of values.
|
static int |
LaunchFailure
An exception occurred on the device while executing a kernel.
|
static int |
LaunchFileScopedSurf
This error indicates that a grid launch did not occur because the kernel
uses file-scoped surfaces which are unsupported by the device runtime.
|
static int |
LaunchFileScopedTex
This error indicates that a grid launch did not occur because the kernel
uses file-scoped textures which are unsupported by the device runtime.
|
static int |
LaunchMaxDepthExceeded
This error indicates that a device runtime grid launch did not occur
because the depth of the child grid would exceed the maximum supported
number of nested grid launches.
|
static int |
LaunchOutOfResources
This indicates that a launch did not occur because it did not have
appropriate resources.
|
static int |
LaunchPendingCountExceeded
This error indicates that a device runtime grid launch failed because
the launch would exceed the limit ::cudaLimitDevRuntimePendingLaunchCount.
|
static int |
LaunchTimeout
This indicates that the device kernel took too long to execute.
|
static int |
MapBufferObjectFailed
This indicates that the buffer object could not be mapped.
|
static int |
MemoryAllocation
The API call failed because it was unable to allocate enough memory to
perform the requested operation.
|
static int |
MissingConfiguration
The device function being invoked (usually via ::cudaLaunch()) was not
previously configured via the ::cudaConfigureCall() function.
|
static int |
NoDevice
This indicates that no CUDA-capable devices were detected by the installed
CUDA driver.
|
static int |
NoKernelImageForDevice
This indicates that there is no kernel image available that is suitable
for the device.
|
static int |
NotPermitted
This error indicates the attempted operation is not permitted.
|
static int |
NotReady
This indicates that asynchronous operations issued previously have not
completed yet.
|
static int |
NotSupported
This error indicates the attempted operation is not supported
on the current system or device.
|
static int |
OperatingSystem
This error indicates that an OS call failed.
|
static int |
PeerAccessAlreadyEnabled
This error indicates that a call to ::cudaDeviceEnablePeerAccess() is
trying to re-enable peer addressing on from a context which has already
had peer addressing enabled.
|
static int |
PeerAccessNotEnabled
This error indicates that ::cudaDeviceDisablePeerAccess() is trying to
disable peer addressing which has not been enabled yet via
::cudaDeviceEnablePeerAccess().
|
static int |
PeerAccessUnsupported
This error indicates that P2P access is not supported across the given
devices.
|
static int |
ProfilerDisabled
This indicates profiler is not initialized for this run.
|
static int |
SetOnActiveProcess
This indicates that the user has called ::cudaSetValidDevices(),
::cudaSetDeviceFlags(), ::cudaD3D9SetDirect3DDevice(),
::cudaD3D10SetDirect3DDevice, ::cudaD3D11SetDirect3DDevice(), or
::cudaVDPAUSetVDPAUDevice() after initializing the CUDA runtime by
calling non-device management operations (allocating memory and
launching kernels are examples of non-device management operations).
|
static int |
SharedObjectInitFailed
This indicates that initialization of a shared object failed.
|
static int |
SharedObjectSymbolNotFound
This indicates that a link to a shared object failed to resolve.
|
static int |
StartupFailure
This indicates an internal startup failure in the CUDA runtime.
|
static int |
Success
The API call returned with no errors.
|
static int |
SyncDepthExceeded
This error indicates that a call to ::cudaDeviceSynchronize made from
the device runtime failed because the call was made at grid depth greater
than either the default (2 levels of grids) or user specified device
limit ::cudaLimitDevRuntimeSyncDepth.
|
static int |
TooManyPeers
This error indicates that the hardware resources required to enable
peer access have been exhausted for one or more of the devices
passed to ::cudaEnablePeerAccess().
|
static int |
Unknown
This indicates that an unknown internal error has occurred.
|
static int |
UnmapBufferObjectFailed
This indicates that the buffer object could not be unmapped.
|
static int |
UnsupportedLimit
This indicates that the ::cudaLimit passed to the API call is not
supported by the active device.
|
static final int Success
static final int MissingConfiguration
static final int MemoryAllocation
static final int InitializationError
static final int LaunchFailure
static final int LaunchTimeout
static final int LaunchOutOfResources
static final int InvalidDeviceFunction
static final int InvalidConfiguration
static final int InvalidDevice
static final int InvalidValue
static final int InvalidPitchValue
static final int InvalidSymbol
static final int MapBufferObjectFailed
static final int UnmapBufferObjectFailed
static final int InvalidHostPointer
static final int InvalidDevicePointer
static final int InvalidTexture
static final int InvalidTextureBinding
static final int InvalidChannelDescriptor
static final int InvalidMemcpyDirection
static final int InvalidFilterSetting
static final int InvalidNormSetting
static final int CudartUnloading
static final int Unknown
static final int InvalidResourceHandle
static final int NotReady
static final int InsufficientDriver
static final int SetOnActiveProcess
static final int InvalidSurface
static final int NoDevice
static final int ECCUncorrectable
static final int SharedObjectSymbolNotFound
static final int SharedObjectInitFailed
static final int UnsupportedLimit
static final int DuplicateVariableName
static final int DuplicateTextureName
static final int DuplicateSurfaceName
static final int DevicesUnavailable
static final int InvalidKernelImage
static final int NoKernelImageForDevice
static final int IncompatibleDriverContext
Interactions with the CUDA Driver APIfor more information.
static final int PeerAccessAlreadyEnabled
static final int PeerAccessNotEnabled
static final int DeviceAlreadyInUse
static final int ProfilerDisabled
static final int Assert
static final int TooManyPeers
static final int HostMemoryAlreadyRegistered
static final int HostMemoryNotRegistered
static final int OperatingSystem
static final int PeerAccessUnsupported
static final int LaunchMaxDepthExceeded
static final int LaunchFileScopedTex
static final int LaunchFileScopedSurf
static final int SyncDepthExceeded
static final int LaunchPendingCountExceeded
static final int NotPermitted
static final int NotSupported
static final int StartupFailure
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2013, 2025 IBM Corp. and others.