pub struct KernelBinding {
pub contract: String,
pub equation: String,
pub module_path: Option<String>,
pub function: Option<String>,
pub signature: Option<String>,
pub status: ImplStatus,
pub notes: Option<String>,
pub kernel: bool,
}Expand description
A single binding: one contract equation mapped to one implementation.
Fields§
§contract: StringContract YAML filename (e.g. “softmax-kernel-v1.yaml”).
equation: StringEquation name within the contract (e.g. “softmax”).
module_path: Option<String>Full Rust module path (e.g. aprender::nn::functional::softmax).
function: Option<String>Function or method name.
signature: Option<String>Full Rust signature string.
status: ImplStatusImplementation status.
notes: Option<String>Free-form notes.
kernel: boolThis entry binds a cuda-oxide #[kernel] beside the equation’s CPU reference (ONT-4c4, #4069): the
ontology joins the two by the shared equation. BINDING-006 keys on it, so an equation holds at most one
reference and one kernel, and BindingRegistry::find_binding never returns the kernel entry.
Implementations§
Source§impl KernelBinding
impl KernelBinding
Sourcepub fn function_defined_in(&self, fn_names: &HashSet<String>) -> bool
pub fn function_defined_in(&self, fn_names: &HashSet<String>) -> bool
True when this binding’s function is present in the given set of
function names discovered in source. A binding with no function field
cannot be verified and returns false.