pub enum ValidationError {
MissingVersionDirective,
MissingTargetDirective,
UndefinedRegister(String),
TypeMismatch {
expected: String,
found: String,
},
InvalidSharedMemSize {
declared: usize,
max_allowed: usize,
},
InvalidAddressSize(String),
SmIncompatibleInstruction {
instruction: String,
required_sm: String,
found_sm: String,
},
RegisterPressureExceeded {
count: usize,
max_allowed: usize,
},
Other(String),
}Expand description
A PTX validation error.
Each variant describes a specific issue found during validation.
Variants§
MissingVersionDirective
The .version directive is missing.
MissingTargetDirective
The .target directive is missing.
UndefinedRegister(String)
A register was used but not declared.
TypeMismatch
A type mismatch was detected (heuristic-based).
Shared memory size exceeds architecture limits.
InvalidAddressSize(String)
The .address_size directive is missing or not 64.
SmIncompatibleInstruction
An instruction requires a newer SM version than the target.
Fields
RegisterPressureExceeded
Register count exceeds the architecture’s per-thread limit (255).
Fields
Other(String)
A generic validation error with descriptive message.
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationError
impl Debug for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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