pub enum GpuError {
Show 25 variants
PtxGeneration(String),
Io(Error),
InvalidParameter(String),
InvalidPtxVersion {
major: u32,
minor: u32,
},
InvalidTarget(String),
CudaDriver(String, i32),
MemoryAllocation(String),
KernelLaunch(String),
InvalidLaunchConfig(String),
RegisterAllocation(String),
BankConflict,
DeviceInit(String),
DeviceNotFound(i32, usize),
ModuleLoad(String),
FunctionNotFound(String),
StreamCreate(String),
StreamSync(String),
Transfer(String),
OutOfMemory {
requested: usize,
available: usize,
},
CudaNotAvailable(String),
NotSupported(String),
GraphCreate(String),
GraphCapture(String),
GraphInstantiate(String),
GraphLaunch(String),
}Expand description
Errors that can occur during GPU operations
Variants§
PtxGeneration(String)
PTX generation error
Io(Error)
I/O error (file operations)
InvalidParameter(String)
Invalid parameter
InvalidPtxVersion
Invalid PTX version
InvalidTarget(String)
Invalid compute capability target
CudaDriver(String, i32)
CUDA driver error
MemoryAllocation(String)
Memory allocation error
KernelLaunch(String)
Kernel launch error
InvalidLaunchConfig(String)
Invalid kernel configuration
RegisterAllocation(String)
Register allocation error
BankConflict
Bank conflict detected (debugging)
DeviceInit(String)
CUDA device initialization failed
DeviceNotFound(i32, usize)
CUDA device not found
ModuleLoad(String)
CUDA module/PTX loading failed
FunctionNotFound(String)
CUDA function not found in module
StreamCreate(String)
CUDA stream creation failed
StreamSync(String)
CUDA stream synchronization failed
Transfer(String)
CUDA memory transfer (H2D/D2H) failed
OutOfMemory
Out of GPU memory
CudaNotAvailable(String)
CUDA not available (no driver or no GPU)
NotSupported(String)
Feature not supported on this device/platform
GraphCreate(String)
CUDA graph creation failed
GraphCapture(String)
CUDA graph capture failed
GraphInstantiate(String)
CUDA graph instantiation failed
GraphLaunch(String)
CUDA graph launch failed
Trait Implementations§
Source§impl Error for GpuError
impl Error for GpuError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()