#[repr(transparent)]pub struct CUresult(pub i32);Expand description
Return code from a CUDA Driver API call.
Tuple Fields§
§0: i32Implementations§
Source§impl CUresult
impl CUresult
pub const SUCCESS: Self
pub const ERROR_INVALID_VALUE: Self
pub const ERROR_OUT_OF_MEMORY: Self
pub const ERROR_NOT_INITIALIZED: Self
pub const ERROR_DEINITIALIZED: Self
pub const ERROR_PROFILER_DISABLED: Self
pub const ERROR_STUB_LIBRARY: Self
pub const ERROR_DEVICE_UNAVAILABLE: Self
pub const ERROR_NO_DEVICE: Self
pub const ERROR_INVALID_DEVICE: Self
pub const ERROR_DEVICE_NOT_LICENSED: Self
pub const ERROR_INVALID_IMAGE: Self
pub const ERROR_INVALID_CONTEXT: Self
pub const ERROR_CONTEXT_ALREADY_CURRENT: Self
pub const ERROR_MAP_FAILED: Self
pub const ERROR_UNMAP_FAILED: Self
pub const ERROR_ARRAY_IS_MAPPED: Self
pub const ERROR_ALREADY_MAPPED: Self
pub const ERROR_NO_BINARY_FOR_GPU: Self
pub const ERROR_ALREADY_ACQUIRED: Self
pub const ERROR_NOT_MAPPED: Self
pub const ERROR_NOT_MAPPED_AS_ARRAY: Self
pub const ERROR_NOT_MAPPED_AS_POINTER: Self
pub const ERROR_ECC_UNCORRECTABLE: Self
pub const ERROR_UNSUPPORTED_LIMIT: Self
pub const ERROR_CONTEXT_ALREADY_IN_USE: Self
pub const ERROR_PEER_ACCESS_UNSUPPORTED: Self
pub const ERROR_INVALID_PTX: Self
pub const ERROR_INVALID_GRAPHICS_CONTEXT: Self
pub const ERROR_NVLINK_UNCORRECTABLE: Self
pub const ERROR_JIT_COMPILER_NOT_FOUND: Self
pub const ERROR_UNSUPPORTED_PTX_VERSION: Self
pub const ERROR_JIT_COMPILATION_DISABLED: Self
pub const ERROR_UNSUPPORTED_EXEC_AFFINITY: Self
pub const ERROR_INVALID_SOURCE: Self
pub const ERROR_FILE_NOT_FOUND: Self
pub const ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: Self
pub const ERROR_SHARED_OBJECT_INIT_FAILED: Self
pub const ERROR_OPERATING_SYSTEM: Self
pub const ERROR_INVALID_HANDLE: Self
pub const ERROR_ILLEGAL_STATE: Self
pub const ERROR_NOT_FOUND: Self
pub const ERROR_NOT_READY: Self
pub const ERROR_ILLEGAL_ADDRESS: Self
pub const ERROR_LAUNCH_OUT_OF_RESOURCES: Self
pub const ERROR_LAUNCH_TIMEOUT: Self
pub const ERROR_LAUNCH_INCOMPATIBLE_TEXTURING: Self
pub const ERROR_PEER_ACCESS_ALREADY_ENABLED: Self
pub const ERROR_PEER_ACCESS_NOT_ENABLED: Self
pub const ERROR_PRIMARY_CONTEXT_ACTIVE: Self
pub const ERROR_CONTEXT_IS_DESTROYED: Self
pub const ERROR_ASSERT: Self
pub const ERROR_TOO_MANY_PEERS: Self
pub const ERROR_HOST_MEMORY_ALREADY_REGISTERED: Self
pub const ERROR_HOST_MEMORY_NOT_REGISTERED: Self
pub const ERROR_HARDWARE_STACK_ERROR: Self
pub const ERROR_ILLEGAL_INSTRUCTION: Self
pub const ERROR_MISALIGNED_ADDRESS: Self
pub const ERROR_INVALID_ADDRESS_SPACE: Self
pub const ERROR_INVALID_PC: Self
pub const ERROR_LAUNCH_FAILED: Self
pub const ERROR_COOPERATIVE_LAUNCH_TOO_LARGE: Self
pub const ERROR_NOT_PERMITTED: Self
pub const ERROR_NOT_SUPPORTED: Self
pub const ERROR_SYSTEM_NOT_READY: Self
pub const ERROR_SYSTEM_DRIVER_MISMATCH: Self
pub const ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE: Self
pub const ERROR_MPS_CONNECTION_FAILED: Self
pub const ERROR_MPS_RPC_FAILURE: Self
pub const ERROR_MPS_SERVER_NOT_READY: Self
pub const ERROR_MPS_MAX_CLIENTS_REACHED: Self
pub const ERROR_MPS_MAX_CONNECTIONS_REACHED: Self
pub const ERROR_STREAM_CAPTURE_UNSUPPORTED: Self
pub const ERROR_STREAM_CAPTURE_INVALIDATED: Self
pub const ERROR_STREAM_CAPTURE_MERGE: Self
pub const ERROR_STREAM_CAPTURE_UNMATCHED: Self
pub const ERROR_STREAM_CAPTURE_UNJOINED: Self
pub const ERROR_STREAM_CAPTURE_ISOLATION: Self
pub const ERROR_STREAM_CAPTURE_IMPLICIT: Self
pub const ERROR_CAPTURED_EVENT: Self
pub const ERROR_STREAM_CAPTURE_WRONG_THREAD: Self
pub const ERROR_TIMEOUT: Self
pub const ERROR_GRAPH_EXEC_UPDATE_FAILURE: Self
pub const ERROR_EXTERNAL_DEVICE: Self
pub const ERROR_INVALID_CLUSTER_SIZE: Self
pub const ERROR_UNKNOWN: Self
pub const fn is_success(self) -> bool
Trait Implementations§
Source§impl CudaStatus for CUresult
impl CudaStatus for CUresult
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 Ord for CUresult
impl Ord for CUresult
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 PartialOrd for CUresult
impl PartialOrd for CUresult
impl Copy for CUresult
impl Eq for CUresult
impl StructuralPartialEq for CUresult
Auto Trait Implementations§
impl Freeze for CUresult
impl RefUnwindSafe for CUresult
impl Send for CUresult
impl Sync for CUresult
impl Unpin for CUresult
impl UnsafeUnpin for CUresult
impl UnwindSafe for CUresult
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