pub struct KernelTarget {
pub arch: &'static str,
pub model: &'static str,
pub quant: &'static str,
}Expand description
2026-09-25: The (arch, model, quant) key of one compiled kernel set; each
metrale_kernels::TargetPtxSet carries one as its target.
Fields§
§arch: &'static str2026-09-25: Architecture identifier. For CUDA it is the base SM
(sm_121, sm_90): the build strips a HARDWARE.toml feature suffix
(sm_90a -> sm_90). Other backends’ names are kept verbatim.
model: &'static str2026-09-25: Model directory name under kernels/<hardware>/ (e.g. qwen3-next-80b-a3b).
quant: &'static str2026-09-25: Quantization directory name under the model (e.g. nvfp4, fp8, bf16).
Implementations§
Source§impl KernelTarget
impl KernelTarget
pub const GB10_QWEN3_NVFP4: Self
pub const GB10_QWEN35_NVFP4: Self
pub const GB10_QWEN35_122B_NVFP4: Self
pub fn model_contains(&self, substring: &str) -> bool
Trait Implementations§
Source§impl Clone for KernelTarget
impl Clone for KernelTarget
Source§fn clone(&self) -> KernelTarget
fn clone(&self) -> KernelTarget
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 KernelTarget
impl Debug for KernelTarget
Source§impl Display for KernelTarget
impl Display for KernelTarget
Source§impl Hash for KernelTarget
impl Hash for KernelTarget
Source§impl PartialEq for KernelTarget
impl PartialEq for KernelTarget
impl Eq for KernelTarget
impl StructuralPartialEq for KernelTarget
Auto Trait Implementations§
impl Freeze for KernelTarget
impl RefUnwindSafe for KernelTarget
impl Send for KernelTarget
impl Sync for KernelTarget
impl Unpin for KernelTarget
impl UnwindSafe for KernelTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.