#[repr(transparent)]pub struct cudaError_t(pub i32);Expand description
Return code from a CUDA Runtime API call.
Modelled as #[repr(transparent)] struct cudaError_t(pub i32) — same
reasoning as crate::CUresult: the runtime may return codes we don’t
yet recognize, and we must not transmute into an exhaustive enum.
Tuple Fields§
§0: i32Implementations§
Source§impl cudaError_t
impl cudaError_t
pub const Success: Self
pub const InvalidValue: Self
pub const MemoryAllocation: Self
pub const InitializationError: Self
pub const CudartUnloading: Self
pub const ProfilerDisabled: Self
pub const InvalidConfiguration: Self
pub const InvalidPitchValue: Self
pub const InvalidSymbol: Self
pub const InvalidHostPointer: Self
pub const InvalidDevicePointer: Self
pub const InvalidTexture: Self
pub const InvalidDeviceFunction: Self
pub const NoDevice: Self
pub const InvalidDevice: Self
pub const DeviceNotLicensed: Self
pub const SoftwareValidityNotEstablished: Self
pub const StartupFailure: Self
pub const InvalidKernelImage: Self
pub const DeviceUninitialized: Self
pub const MapBufferObjectFailed: Self
pub const UnmapBufferObjectFailed: Self
pub const ArrayIsMapped: Self
pub const AlreadyMapped: Self
pub const NoKernelImageForDevice: Self
pub const AlreadyAcquired: Self
pub const NotMapped: Self
pub const ECCUncorrectable: Self
pub const UnsupportedLimit: Self
pub const DeviceAlreadyInUse: Self
pub const PeerAccessUnsupported: Self
pub const InvalidPtx: Self
pub const InvalidGraphicsContext: Self
pub const NvlinkUncorrectable: Self
pub const JitCompilerNotFound: Self
pub const UnsupportedPtxVersion: Self
pub const InvalidSource: Self
pub const FileNotFound: Self
pub const OperatingSystem: Self
pub const InvalidResourceHandle: Self
pub const IllegalState: Self
pub const SymbolNotFound: Self
pub const NotReady: Self
pub const IllegalAddress: Self
pub const LaunchOutOfResources: Self
pub const LaunchTimeout: Self
pub const PrimaryContextActive: Self
pub const ContextIsDestroyed: Self
pub const Assert: Self
pub const MisalignedAddress: Self
pub const LaunchFailure: Self
pub const CooperativeLaunchTooLarge: Self
pub const NotPermitted: Self
pub const NotSupported: Self
pub const SystemNotReady: Self
pub const SystemDriverMismatch: Self
pub const CompatNotSupportedOnDevice: Self
pub const StreamCaptureUnsupported: Self
pub const StreamCaptureInvalidated: Self
pub const StreamCaptureMerge: Self
pub const StreamCaptureUnmatched: Self
pub const StreamCaptureUnjoined: Self
pub const StreamCaptureIsolation: Self
pub const StreamCaptureImplicit: Self
pub const CapturedEvent: Self
pub const StreamCaptureWrongThread: Self
pub const Timeout: Self
pub const GraphExecUpdateFailure: Self
pub const Unknown: Self
pub const fn is_success(self) -> bool
Trait Implementations§
Source§impl Clone for cudaError_t
impl Clone for cudaError_t
Source§fn clone(&self) -> cudaError_t
fn clone(&self) -> cudaError_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CudaStatus for cudaError_t
impl CudaStatus for cudaError_t
Source§fn name(self) -> &'static str
fn name(self) -> &'static str
The stable symbol name of this status
(e.g.
"CUDA_SUCCESS", "CUBLAS_STATUS_NOT_INITIALIZED").Source§fn description(self) -> &'static str
fn description(self) -> &'static str
A human-readable description of the status. Read more
Source§fn is_success(self) -> bool
fn is_success(self) -> bool
true if this status represents successful completion.Source§impl Debug for cudaError_t
impl Debug for cudaError_t
Source§impl Hash for cudaError_t
impl Hash for cudaError_t
Source§impl Ord for cudaError_t
impl Ord for cudaError_t
Source§fn cmp(&self, other: &cudaError_t) -> Ordering
fn cmp(&self, other: &cudaError_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for cudaError_t
impl PartialEq for cudaError_t
Source§fn eq(&self, other: &cudaError_t) -> bool
fn eq(&self, other: &cudaError_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cudaError_t
impl PartialOrd for cudaError_t
impl Copy for cudaError_t
impl Eq for cudaError_t
impl StructuralPartialEq for cudaError_t
Auto Trait Implementations§
impl Freeze for cudaError_t
impl RefUnwindSafe for cudaError_t
impl Send for cudaError_t
impl Sync for cudaError_t
impl Unpin for cudaError_t
impl UnsafeUnpin for cudaError_t
impl UnwindSafe for cudaError_t
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