pub enum PtxGenError {
GenerationFailed(String),
InvalidType(String),
RegisterError(String),
MissingBody,
FormatError(Error),
IoError(Error),
UnknownParam(String),
UnsupportedFeature {
arch: String,
feature: String,
},
}Expand description
Errors that can occur during PTX code generation.
This enum covers validation failures during kernel building, register allocation issues, missing required fields, and I/O or formatting errors encountered while emitting PTX text.
Variants§
GenerationFailed(String)
General PTX generation failure with a descriptive message.
InvalidType(String)
An invalid or unsupported PTX type was encountered.
RegisterError(String)
A register allocation error (e.g. exceeding limits).
MissingBody
The kernel builder was finalized without a body function.
FormatError(Error)
A std::fmt::Write formatting error during PTX text emission.
IoError(Error)
An I/O error during PTX text emission or file writing.
UnknownParam(String)
A required kernel parameter was referenced but not declared.
UnsupportedFeature
The target architecture does not support the requested feature.
Trait Implementations§
Source§impl Debug for PtxGenError
impl Debug for PtxGenError
Source§impl Display for PtxGenError
impl Display for PtxGenError
Source§impl Error for PtxGenError
impl Error for PtxGenError
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<Error> for PtxGenError
impl From<Error> for PtxGenError
Auto Trait Implementations§
impl Freeze for PtxGenError
impl !RefUnwindSafe for PtxGenError
impl Send for PtxGenError
impl Sync for PtxGenError
impl Unpin for PtxGenError
impl UnsafeUnpin for PtxGenError
impl !UnwindSafe for PtxGenError
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