pub enum ValidationError {
SmTooLow {
required: u32,
actual: u32,
feature: String,
},
MmaSyncBf16Rejected {
operand: &'static str,
},
LdMatrixBadRegType {
operand: &'static str,
found: PtxType,
},
}Expand description
Errors returned by PtxModule::validate.
Scope is intentionally narrow — target-capability checks only, no semantic analysis.
Variants§
SmTooLow
A feature used by the module requires a higher SM target than the module declares.
Example: a kernel containing mma.sync.m16n8k16 in a module
with .target sm_70 would yield
required: 80, actual: 70, feature: "mma.sync.m16n8k16".
Fields
MmaSyncBf16Rejected
A TensorCoreOp::MmaSync instruction was constructed with
PtxType::BF16 on a_ty or b_ty. Bf16 emission must use the
dedicated TensorCoreOp::MmaSyncBf16 variant so fragment types
and instruction dtype stay aligned at the IR boundary.
Introduced in Sprint 9.1 cleanup; closes the legacy hole where the
generic MmaSync path silently emitted a bf16 instruction from
FragmentA_F16 / FragmentB_F16 operands.
LdMatrixBadRegType
A TensorCoreOp::LdMatrix instruction carries a register whose
declared type is not PtxType::U32 (.b32 class). The mma
variants get this for free from their typed fragment wrappers;
LdMatrix takes raw registers, so the check lives here.
Destination registers hold packed 16-bit pairs
(alloc_packed_half2
convention) and the address register is a shared-space .u32
byte address. Introduced in Sprint 9.3.
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
impl Eq for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · 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()
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
Source§fn eq(&self, other: &ValidationError) -> bool
fn eq(&self, other: &ValidationError) -> bool
self and other values to be equal, and is used by ==.