#[repr(u32)]
pub enum CudaError {
Show 59 variants
InvalidValue,
OutOfMemory,
NotInitialized,
Deinitialized,
ProfilerDisabled,
ProfilerNotInitialized,
ProfilerAlreadyStarted,
ProfilerAlreadyStopped,
NoDevice,
InvalidDevice,
InvalidImage,
InvalidContext,
ContextAlreadyCurrent,
MapFailed,
UnmapFailed,
ArrayIsMapped,
AlreadyMapped,
NoBinaryForGpu,
AlreadyAcquired,
NotMapped,
NotMappedAsArray,
NotMappedAsPointer,
EccUncorrectable,
UnsupportedLimit,
ContextAlreadyInUse,
PeerAccessUnsupported,
InvalidPtx,
InvalidGraphicsContext,
NvlinkUncorrectable,
InvalidSouce,
FileNotFound,
SharedObjectSymbolNotFound,
SharedObjectInitFailed,
OperatingSystemError,
InvalidHandle,
NotFound,
NotReady,
IllegalAddress,
LaunchOutOfResources,
LaunchTimeout,
LaunchIncompatibleTexturing,
PeerAccessAlreadyEnabled,
PeerAccessNotEnabled,
PrimaryContextActive,
ContextIsDestroyed,
AssertError,
TooManyPeers,
HostMemoryAlreadyRegistered,
HostMemoryNotRegistered,
HardwareStackError,
IllegalInstruction,
MisalignedAddress,
InvalidAddressSpace,
InvalidProgramCounter,
LaunchFailed,
NotPermitted,
NotSupported,
UnknownError,
InvalidMemoryAllocation,
// some variants omitted
}
Expand description
Error enum which represents all the potential errors returned by the CUDA driver API.
Variants§
InvalidValue
OutOfMemory
NotInitialized
Deinitialized
ProfilerDisabled
ProfilerNotInitialized
ProfilerAlreadyStarted
ProfilerAlreadyStopped
NoDevice
InvalidDevice
InvalidImage
InvalidContext
ContextAlreadyCurrent
MapFailed
UnmapFailed
ArrayIsMapped
AlreadyMapped
NoBinaryForGpu
AlreadyAcquired
NotMapped
NotMappedAsArray
NotMappedAsPointer
EccUncorrectable
UnsupportedLimit
ContextAlreadyInUse
PeerAccessUnsupported
InvalidPtx
InvalidGraphicsContext
NvlinkUncorrectable
InvalidSouce
FileNotFound
OperatingSystemError
InvalidHandle
NotFound
NotReady
IllegalAddress
LaunchOutOfResources
LaunchTimeout
LaunchIncompatibleTexturing
PeerAccessAlreadyEnabled
PeerAccessNotEnabled
PrimaryContextActive
ContextIsDestroyed
AssertError
TooManyPeers
HostMemoryAlreadyRegistered
HostMemoryNotRegistered
HardwareStackError
IllegalInstruction
MisalignedAddress
InvalidAddressSpace
InvalidProgramCounter
LaunchFailed
NotPermitted
NotSupported
UnknownError
InvalidMemoryAllocation
Trait Implementations§
source§impl Error for CudaError
impl Error for CudaError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()