pub enum CudaError {
Show 59 variants
InvalidValue = 1,
OutOfMemory = 2,
NotInitialized = 3,
Deinitialized = 4,
ProfilerDisabled = 5,
ProfilerNotInitialized = 6,
ProfilerAlreadyStarted = 7,
ProfilerAlreadyStopped = 8,
NoDevice = 100,
InvalidDevice = 101,
InvalidImage = 200,
InvalidContext = 201,
ContextAlreadyCurrent = 202,
MapFailed = 205,
UnmapFailed = 206,
ArrayIsMapped = 207,
AlreadyMapped = 208,
NoBinaryForGpu = 209,
AlreadyAcquired = 210,
NotMapped = 211,
NotMappedAsArray = 212,
NotMappedAsPointer = 213,
EccUncorrectable = 214,
UnsupportedLimit = 215,
ContextAlreadyInUse = 216,
PeerAccessUnsupported = 217,
InvalidPtx = 218,
InvalidGraphicsContext = 219,
NvlinkUncorrectable = 220,
InvalidSouce = 300,
FileNotFound = 301,
SharedObjectSymbolNotFound = 302,
SharedObjectInitFailed = 303,
OperatingSystemError = 304,
InvalidHandle = 400,
NotFound = 500,
NotReady = 600,
IllegalAddress = 700,
LaunchOutOfResources = 701,
LaunchTimeout = 702,
LaunchIncompatibleTexturing = 703,
PeerAccessAlreadyEnabled = 704,
PeerAccessNotEnabled = 705,
PrimaryContextActive = 708,
ContextIsDestroyed = 709,
AssertError = 710,
TooManyPeers = 711,
HostMemoryAlreadyRegistered = 712,
HostMemoryNotRegistered = 713,
HardwareStackError = 714,
IllegalInstruction = 715,
MisalignedAddress = 716,
InvalidAddressSpace = 717,
InvalidProgramCounter = 718,
LaunchFailed = 719,
NotPermitted = 800,
NotSupported = 801,
UnknownError = 999,
InvalidMemoryAllocation = 100_100,
// some variants omitted
}Expand description
Error enum which represents all the potential errors returned by the CUDA driver API.
Variants§
InvalidValue = 1
OutOfMemory = 2
NotInitialized = 3
Deinitialized = 4
ProfilerDisabled = 5
ProfilerNotInitialized = 6
ProfilerAlreadyStarted = 7
ProfilerAlreadyStopped = 8
NoDevice = 100
InvalidDevice = 101
InvalidImage = 200
InvalidContext = 201
ContextAlreadyCurrent = 202
MapFailed = 205
UnmapFailed = 206
ArrayIsMapped = 207
AlreadyMapped = 208
NoBinaryForGpu = 209
AlreadyAcquired = 210
NotMapped = 211
NotMappedAsArray = 212
NotMappedAsPointer = 213
EccUncorrectable = 214
UnsupportedLimit = 215
ContextAlreadyInUse = 216
PeerAccessUnsupported = 217
InvalidPtx = 218
InvalidGraphicsContext = 219
NvlinkUncorrectable = 220
InvalidSouce = 300
FileNotFound = 301
OperatingSystemError = 304
InvalidHandle = 400
NotFound = 500
NotReady = 600
IllegalAddress = 700
LaunchOutOfResources = 701
LaunchTimeout = 702
LaunchIncompatibleTexturing = 703
PeerAccessAlreadyEnabled = 704
PeerAccessNotEnabled = 705
PrimaryContextActive = 708
ContextIsDestroyed = 709
AssertError = 710
TooManyPeers = 711
HostMemoryAlreadyRegistered = 712
HostMemoryNotRegistered = 713
HardwareStackError = 714
IllegalInstruction = 715
MisalignedAddress = 716
InvalidAddressSpace = 717
InvalidProgramCounter = 718
LaunchFailed = 719
NotPermitted = 800
NotSupported = 801
UnknownError = 999
InvalidMemoryAllocation = 100_100
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)>
Returns 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()
impl Copy for CudaError
impl Eq for CudaError
impl StructuralPartialEq for CudaError
Auto Trait Implementations§
impl Freeze for CudaError
impl RefUnwindSafe for CudaError
impl Send for CudaError
impl Sync for CudaError
impl Unpin for CudaError
impl UnwindSafe for CudaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more