Device

Struct Device 

Source
pub struct Device {
Show 21 fields pub id: String, pub name: String, pub class: String, pub arch: String, pub compute_capability: String, pub sms: u32, pub memory_bytes: f64, pub memory_type: String, pub bandwidth_gbps: f64, pub l2_mb: Option<f64>, pub smem_per_sm_kb: u32, pub cluster_max: u32, pub tmem_per_sm_kb: u32, pub mma_family: MmaFamily, pub native: BTreeSet<Instr>, pub peaks: Peaks, pub measured: Option<String>, pub usable_fraction: f64, pub usable_why: String, pub derived: Vec<String>, pub sources: Vec<String>,
}
Expand description

2026-09-30: One SKU.

Fields§

§id: String

2026-09-30: h100-sxm.

§name: String

2026-09-30: Marketing name.

§class: String

2026-09-30: Kernel class, kernels/<class>/.

§arch: String

2026-09-30: Build arch (sm_90a), equal to the class’s HARDWARE.toml.

§compute_capability: String

2026-09-30: Compute capability.

§sms: u32

2026-09-30: SM count.

§memory_bytes: f64

2026-09-30: Visible device memory, bytes (memory_gib_visible, else the datasheet GB, which tracks the visible GiB).

§memory_type: String

2026-09-30: Memory technology.

§bandwidth_gbps: f64

2026-09-30: Datasheet DRAM bandwidth, GB/s.

§l2_mb: Option<f64>

2026-09-30: L2, MB, when published.

§smem_per_sm_kb: u32

2026-09-30: Shared memory per SM, KB.

§cluster_max: u32

2026-09-30: Largest portable thread-block cluster.

§tmem_per_sm_kb: u32

2026-09-30: Tensor memory per SM, KB (tcgen05 accumulators); 0 without.

§mma_family: MmaFamily

2026-09-30: The family fast kernels are written for.

§native: BTreeSet<Instr>

2026-09-30: Instruction kinds executed natively (mma_family x the native_mma pairs).

§peaks: Peaks

2026-09-30: Dense datasheet peaks.

§measured: Option<String>

2026-09-30: Where measured achievable figures live, when measured.

§usable_fraction: f64

2026-09-30: Share of memory the planner may use.

§usable_why: String

2026-09-30: Why that share.

§derived: Vec<String>

2026-09-30: Keys computed by the research, not published.

§sources: Vec<String>

2026-09-30: Source ids (S1, …), resolved in Registry::sources.

Implementations§

Source§

impl Device

Source

pub fn runs(&self, kind: MmaKind) -> bool

2026-09-30: Any family runs kind natively.

Trait Implementations§

Source§

impl Clone for Device

Source§

fn clone(&self) -> Device

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Device

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Device

Source§

fn eq(&self, other: &Device) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Device

Auto Trait Implementations§

§

impl Freeze for Device

§

impl RefUnwindSafe for Device

§

impl Send for Device

§

impl Sync for Device

§

impl Unpin for Device

§

impl UnwindSafe for Device

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.