pub enum GpuError {
CudaUnavailable,
KernelFailed(i32),
InvalidInput(&'static str),
}Expand description
Errors that the GPU pipeline can surface.
The most common variant on developer machines without an NVIDIA toolkit
is CudaUnavailable; the CLI translates this into exit code 2 so it can
be distinguished from a hash-chain divergence.
Variants§
The crate was built without the cuda feature, so no kernels are
present. The CPU reference path still runs.
KernelFailed(i32)
A kernel returned a non-zero error code. The contained value is the raw status from the FFI boundary.
InvalidInput(&'static str)
One of the pipeline inputs disagrees with the contract (bad dimensions, oversize buffer, null pointer at the FFI boundary).
Trait Implementations§
impl Copy for GpuError
impl Eq for GpuError
impl StructuralPartialEq for GpuError
Auto Trait Implementations§
impl Freeze for GpuError
impl RefUnwindSafe for GpuError
impl Send for GpuError
impl Sync for GpuError
impl Unpin for GpuError
impl UnsafeUnpin for GpuError
impl UnwindSafe for GpuError
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