Skip to main content

cudaError_t

Struct cudaError_t 

Source
#[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: i32

Implementations§

Source§

impl cudaError_t

Source

pub const Success: Self

Source

pub const InvalidValue: Self

Source

pub const MemoryAllocation: Self

Source

pub const InitializationError: Self

Source

pub const CudartUnloading: Self

Source

pub const ProfilerDisabled: Self

Source

pub const InvalidConfiguration: Self

Source

pub const InvalidPitchValue: Self

Source

pub const InvalidSymbol: Self

Source

pub const InvalidHostPointer: Self

Source

pub const InvalidDevicePointer: Self

Source

pub const InvalidTexture: Self

Source

pub const InvalidDeviceFunction: Self

Source

pub const NoDevice: Self

Source

pub const InvalidDevice: Self

Source

pub const DeviceNotLicensed: Self

Source

pub const SoftwareValidityNotEstablished: Self

Source

pub const StartupFailure: Self

Source

pub const InvalidKernelImage: Self

Source

pub const DeviceUninitialized: Self

Source

pub const MapBufferObjectFailed: Self

Source

pub const UnmapBufferObjectFailed: Self

Source

pub const ArrayIsMapped: Self

Source

pub const AlreadyMapped: Self

Source

pub const NoKernelImageForDevice: Self

Source

pub const AlreadyAcquired: Self

Source

pub const NotMapped: Self

Source

pub const ECCUncorrectable: Self

Source

pub const UnsupportedLimit: Self

Source

pub const DeviceAlreadyInUse: Self

Source

pub const PeerAccessUnsupported: Self

Source

pub const InvalidPtx: Self

Source

pub const InvalidGraphicsContext: Self

Source

pub const NvlinkUncorrectable: Self

Source

pub const JitCompilerNotFound: Self

Source

pub const UnsupportedPtxVersion: Self

Source

pub const InvalidSource: Self

Source

pub const FileNotFound: Self

Source

pub const SharedObjectSymbolNotFound: Self

Source

pub const SharedObjectInitFailed: Self

Source

pub const OperatingSystem: Self

Source

pub const InvalidResourceHandle: Self

Source

pub const IllegalState: Self

Source

pub const SymbolNotFound: Self

Source

pub const NotReady: Self

Source

pub const IllegalAddress: Self

Source

pub const LaunchOutOfResources: Self

Source

pub const LaunchTimeout: Self

Source

pub const PrimaryContextActive: Self

Source

pub const ContextIsDestroyed: Self

Source

pub const Assert: Self

Source

pub const MisalignedAddress: Self

Source

pub const LaunchFailure: Self

Source

pub const CooperativeLaunchTooLarge: Self

Source

pub const NotPermitted: Self

Source

pub const NotSupported: Self

Source

pub const SystemNotReady: Self

Source

pub const SystemDriverMismatch: Self

Source

pub const CompatNotSupportedOnDevice: Self

Source

pub const StreamCaptureUnsupported: Self

Source

pub const StreamCaptureInvalidated: Self

Source

pub const StreamCaptureMerge: Self

Source

pub const StreamCaptureUnmatched: Self

Source

pub const StreamCaptureUnjoined: Self

Source

pub const StreamCaptureIsolation: Self

Source

pub const StreamCaptureImplicit: Self

Source

pub const CapturedEvent: Self

Source

pub const StreamCaptureWrongThread: Self

Source

pub const Timeout: Self

Source

pub const GraphExecUpdateFailure: Self

Source

pub const Unknown: Self

Source

pub const fn is_success(self) -> bool

Trait Implementations§

Source§

impl Clone for cudaError_t

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl CudaStatus for cudaError_t

Source§

fn code(self) -> i32

The integer value of this status, as returned from the C API.
Source§

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

A human-readable description of the status. Read more
Source§

fn is_success(self) -> bool

true if this status represents successful completion.
Source§

fn library(self) -> &'static str

Which NVIDIA library produced this status (e.g. "cuda-driver", "cublas"). Used for composing cross-library error messages.
Source§

impl Debug for cudaError_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for cudaError_t

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for cudaError_t

Source§

fn cmp(&self, other: &cudaError_t) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for cudaError_t

Source§

fn eq(&self, other: &cudaError_t) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for cudaError_t

Source§

fn partial_cmp(&self, other: &cudaError_t) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for cudaError_t

Source§

impl Eq for cudaError_t

Source§

impl StructuralPartialEq for cudaError_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.