Enum cudaError_t

Source
#[repr(u32)]
pub enum cudaError_t {
Show 59 variants CUDA_SUCCESS = 0, CUDA_ERROR_INVALID_VALUE = 1, CUDA_ERROR_OUT_OF_MEMORY = 2, CUDA_ERROR_NOT_INITIALIZED = 3, CUDA_ERROR_DEINITIALIZED = 4, CUDA_ERROR_PROFILER_DISABLED = 5, CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6, CUDA_ERROR_PROFILER_ALREADY_STARTED = 7, CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8, CUDA_ERROR_NO_DEVICE = 100, CUDA_ERROR_INVALID_DEVICE = 101, CUDA_ERROR_INVALID_IMAGE = 200, CUDA_ERROR_INVALID_CONTEXT = 201, CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202, CUDA_ERROR_MAP_FAILED = 205, CUDA_ERROR_UNMAP_FAILED = 206, CUDA_ERROR_ARRAY_IS_MAPPED = 207, CUDA_ERROR_ALREADY_MAPPED = 208, CUDA_ERROR_NO_BINARY_FOR_GPU = 209, CUDA_ERROR_ALREADY_ACQUIRED = 210, CUDA_ERROR_NOT_MAPPED = 211, CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212, CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213, CUDA_ERROR_ECC_UNCORRECTABLE = 214, CUDA_ERROR_UNSUPPORTED_LIMIT = 215, CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216, CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217, CUDA_ERROR_INVALID_PTX = 218, CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219, CUDA_ERROR_NVLINK_UNCORRECTABLE = 220, CUDA_ERROR_INVALID_SOURCE = 300, CUDA_ERROR_FILE_NOT_FOUND = 301, CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302, CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303, CUDA_ERROR_OPERATING_SYSTEM = 304, CUDA_ERROR_INVALID_HANDLE = 400, CUDA_ERROR_NOT_FOUND = 500, CUDA_ERROR_NOT_READY = 600, CUDA_ERROR_ILLEGAL_ADDRESS = 700, CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701, CUDA_ERROR_LAUNCH_TIMEOUT = 702, CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = 703, CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704, CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705, CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708, CUDA_ERROR_CONTEXT_IS_DESTROYED = 709, CUDA_ERROR_ASSERT = 710, CUDA_ERROR_TOO_MANY_PEERS = 711, CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712, CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713, CUDA_ERROR_HARDWARE_STACK_ERROR = 714, CUDA_ERROR_ILLEGAL_INSTRUCTION = 715, CUDA_ERROR_MISALIGNED_ADDRESS = 716, CUDA_ERROR_INVALID_ADDRESS_SPACE = 717, CUDA_ERROR_INVALID_PC = 718, CUDA_ERROR_LAUNCH_FAILED = 719, CUDA_ERROR_NOT_PERMITTED = 800, CUDA_ERROR_NOT_SUPPORTED = 801, CUDA_ERROR_UNKNOWN = 999,
}

Variants§

§

CUDA_SUCCESS = 0

§

CUDA_ERROR_INVALID_VALUE = 1

§

CUDA_ERROR_OUT_OF_MEMORY = 2

§

CUDA_ERROR_NOT_INITIALIZED = 3

§

CUDA_ERROR_DEINITIALIZED = 4

§

CUDA_ERROR_PROFILER_DISABLED = 5

§

CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6

§

CUDA_ERROR_PROFILER_ALREADY_STARTED = 7

§

CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8

§

CUDA_ERROR_NO_DEVICE = 100

§

CUDA_ERROR_INVALID_DEVICE = 101

§

CUDA_ERROR_INVALID_IMAGE = 200

§

CUDA_ERROR_INVALID_CONTEXT = 201

§

CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202

§

CUDA_ERROR_MAP_FAILED = 205

§

CUDA_ERROR_UNMAP_FAILED = 206

§

CUDA_ERROR_ARRAY_IS_MAPPED = 207

§

CUDA_ERROR_ALREADY_MAPPED = 208

§

CUDA_ERROR_NO_BINARY_FOR_GPU = 209

§

CUDA_ERROR_ALREADY_ACQUIRED = 210

§

CUDA_ERROR_NOT_MAPPED = 211

§

CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212

§

CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213

§

CUDA_ERROR_ECC_UNCORRECTABLE = 214

§

CUDA_ERROR_UNSUPPORTED_LIMIT = 215

§

CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216

§

CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217

§

CUDA_ERROR_INVALID_PTX = 218

§

CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219

§

CUDA_ERROR_INVALID_SOURCE = 300

§

CUDA_ERROR_FILE_NOT_FOUND = 301

§

CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302

§

CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303

§

CUDA_ERROR_OPERATING_SYSTEM = 304

§

CUDA_ERROR_INVALID_HANDLE = 400

§

CUDA_ERROR_NOT_FOUND = 500

§

CUDA_ERROR_NOT_READY = 600

§

CUDA_ERROR_ILLEGAL_ADDRESS = 700

§

CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701

§

CUDA_ERROR_LAUNCH_TIMEOUT = 702

§

CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = 703

§

CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704

§

CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705

§

CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708

§

CUDA_ERROR_CONTEXT_IS_DESTROYED = 709

§

CUDA_ERROR_ASSERT = 710

§

CUDA_ERROR_TOO_MANY_PEERS = 711

§

CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712

§

CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713

§

CUDA_ERROR_HARDWARE_STACK_ERROR = 714

§

CUDA_ERROR_ILLEGAL_INSTRUCTION = 715

§

CUDA_ERROR_MISALIGNED_ADDRESS = 716

§

CUDA_ERROR_INVALID_ADDRESS_SPACE = 717

§

CUDA_ERROR_INVALID_PC = 718

§

CUDA_ERROR_LAUNCH_FAILED = 719

§

CUDA_ERROR_NOT_PERMITTED = 800

§

CUDA_ERROR_NOT_SUPPORTED = 801

§

CUDA_ERROR_UNKNOWN = 999

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 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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 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 · 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 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.