pub struct KernelTarget {
pub arch: &'static str,
pub model: &'static str,
pub quant: &'static str,
}Expand description
Describes a (Hardware, Model, Quantization) target for kernel selection.
Each unique KernelTarget maps to a distinct set of PTX modules
that have been hyperoptimized for that specific combination.
Fields§
§arch: &'static strSM architecture identifier (e.g., “sm_121”, “sm_100a”).
model: &'static strModel identifier (e.g., “qwen3-next-80b-a3b”).
quant: &'static strQuantization scheme (e.g., “nvfp4”, “fp8”, “bf16”).
Implementations§
Source§impl KernelTarget
impl KernelTarget
Sourcepub const GB10_QWEN3_NVFP4: Self
pub const GB10_QWEN3_NVFP4: Self
GB10 + Qwen3-Next-80B-A3B + NVFP4.
Sourcepub const GB10_QWEN35_NVFP4: Self
pub const GB10_QWEN35_NVFP4: Self
GB10 + Qwen3.5-35B-A3B + NVFP4.
Sourcepub const GB10_QWEN35_122B_NVFP4: Self
pub const GB10_QWEN35_122B_NVFP4: Self
GB10 + Qwen3.5-122B-A10B + NVFP4.
Sourcepub fn model_contains(&self, substring: &str) -> bool
pub fn model_contains(&self, substring: &str) -> bool
Check if this target’s model name contains the given substring.
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
Compare self to
key and return true if they are equal.