pub enum KaioError {
Cuda(DriverError),
OutOfMemory {
requested: usize,
},
InvalidConfig(String),
DeviceNotFound(usize),
PtxLoad(String),
Validation(ValidationError),
}Expand description
Errors that can occur during KAIO runtime operations.
Variants§
Cuda(DriverError)
A CUDA driver API call failed.
OutOfMemory
Device memory allocation failed.
InvalidConfig(String)
Invalid kernel launch configuration.
DeviceNotFound(usize)
No GPU device found at the given ordinal.
PtxLoad(String)
Failed to load a PTX module into the driver.
Validation(ValidationError)
A PtxModule failed validation before being handed to the driver.
Raised by KaioDevice::load_module
when the module’s target SM is too low for a feature it uses
(e.g. mma.sync in a sm_70 module). Surfacing this before the
driver compiles the PTX avoids cryptic downstream errors.
Trait Implementations§
Source§impl Error for KaioError
impl Error for KaioError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DriverError> for KaioError
impl From<DriverError> for KaioError
Source§fn from(source: DriverError) -> Self
fn from(source: DriverError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for KaioError
impl From<ValidationError> for KaioError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KaioError
impl RefUnwindSafe for KaioError
impl Send for KaioError
impl Sync for KaioError
impl Unpin for KaioError
impl UnsafeUnpin for KaioError
impl UnwindSafe for KaioError
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