DriverError

Enum DriverError 

Source
pub enum DriverError {
Show 57 variants InvalidValue(&'static str), OutOfMemory(&'static str), NotInitialized(&'static str), Deinitialized(&'static str), ProfilerDisabled(&'static str), ProfilerNotInitialized(&'static str), ProfilerAlreadyStarted(&'static str), ProfilerAlreadyStopped(&'static str), NoDevice(&'static str), InvalidDevice(&'static str), InvalidImage(&'static str), InvalidContext(&'static str), ContextAlreadyCurrent(&'static str), MapFailed(&'static str), UnmapFailed(&'static str), ArrayIsMapped(&'static str), AlreadyMapped(&'static str), NoBinaryForGpu(&'static str), AlreadyAquired(&'static str), NotMapped(&'static str), NotMappedAsArray(&'static str), NotMappedAsPointer(&'static str), EccUncorrectable(&'static str), UnsupportedLimit(&'static str), ContextAlreadyInUse(&'static str), PeerAccessUnsupported(&'static str), InvalidPtx(&'static str), InvalidGraphicsContent(&'static str), InvalidSource(&'static str), FileNotFound(&'static str), SharedObjectSymbolNotFound(&'static str), SharedObjectInitFailed(&'static str), OperatingSystem(&'static str), InvalidHandle(&'static str), NotFound(&'static str), NotReady(&'static str), IllegalAddress(&'static str), LaunchOutOfResources(&'static str), LaunchTimeout(&'static str), LauncIncompatibleTexturing(&'static str), PeerAccessAlreadyEnabled(&'static str), PeerAccessNotEnabled(&'static str), PrimaryContextActive(&'static str), ContextIsDestroyed(&'static str), Assert(&'static str), TooManyPeers(&'static str), HostMemoryAlreadyRegistered(&'static str), HostMemoryNotRegistered(&'static str), HardwareStackError(&'static str), IllegalInstruction(&'static str), MisalignedAddress(&'static str), InvalidAddressSpace(&'static str), InvalidPc(&'static str), LaunchFailed(&'static str), NotPermitted(&'static str), NotSupported(&'static str), Unknown(&'static str),
}
Expand description

Defines OpenCL errors.

Variants§

§

InvalidValue(&'static str)

Failure with provided value.

§

OutOfMemory(&'static str)

Failure with memory allocation.

§

NotInitialized(&'static str)

Failure with Cuda initialization.

§

Deinitialized(&'static str)

Failure with Cuda initialization.

§

ProfilerDisabled(&'static str)

Failure with Profiler.

§

ProfilerNotInitialized(&'static str)

Failure with Profiler.

§

ProfilerAlreadyStarted(&'static str)

Failure with Profiler.

§

ProfilerAlreadyStopped(&'static str)

Failure with Profiler.

§

NoDevice(&'static str)

Failure with Cuda devices.

§

InvalidDevice(&'static str)

Failure with provided Cuda device.

§

InvalidImage(&'static str)

Failure with provided Cuda image.

§

InvalidContext(&'static str)

Failure with provided Cuda context.

§

ContextAlreadyCurrent(&'static str)

Failure with provided Cuda context.

§

MapFailed(&'static str)

Failure

§

UnmapFailed(&'static str)

Failure

§

ArrayIsMapped(&'static str)

Failure

§

AlreadyMapped(&'static str)

Failure

§

NoBinaryForGpu(&'static str)

Failure with binary.

§

AlreadyAquired(&'static str)

Failure

§

NotMapped(&'static str)

Failure

§

NotMappedAsArray(&'static str)

Failure

§

NotMappedAsPointer(&'static str)

Failure

§

EccUncorrectable(&'static str)

Failure

§

UnsupportedLimit(&'static str)

Failure

§

ContextAlreadyInUse(&'static str)

Failure with context.

§

PeerAccessUnsupported(&'static str)

Failure

§

InvalidPtx(&'static str)

Failure with provided PTX.

§

InvalidGraphicsContent(&'static str)

Failure

§

InvalidSource(&'static str)

Failure

§

FileNotFound(&'static str)

Failure

§

SharedObjectSymbolNotFound(&'static str)

Failure

§

SharedObjectInitFailed(&'static str)

Failure

§

OperatingSystem(&'static str)

Failure

§

InvalidHandle(&'static str)

Failure

§

NotFound(&'static str)

Failure

§

NotReady(&'static str)

Failure

§

IllegalAddress(&'static str)

Failure

§

LaunchOutOfResources(&'static str)

Failure

§

LaunchTimeout(&'static str)

Failure

§

LauncIncompatibleTexturing(&'static str)

Failure

§

PeerAccessAlreadyEnabled(&'static str)

Failure

§

PeerAccessNotEnabled(&'static str)

Failure

§

PrimaryContextActive(&'static str)

Failure

§

ContextIsDestroyed(&'static str)

Failure

§

Assert(&'static str)

Failure

§

TooManyPeers(&'static str)

Failure

§

HostMemoryAlreadyRegistered(&'static str)

Failure

§

HostMemoryNotRegistered(&'static str)

Failure

§

HardwareStackError(&'static str)

Failure

§

IllegalInstruction(&'static str)

Failure

§

MisalignedAddress(&'static str)

Failure

§

InvalidAddressSpace(&'static str)

Failure

§

InvalidPc(&'static str)

Failure

§

LaunchFailed(&'static str)

Failure

§

NotPermitted(&'static str)

Failure

§

NotSupported(&'static str)

Failure

§

Unknown(&'static str)

Failure

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

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 Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for Error

Available on crate feature cuda only.
Source§

fn from(err: CudaError) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature cuda only.
Source§

fn from(err: CudaError) -> Error

Converts to this type from the input type.
Source§

impl Copy for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.