pub enum SmArch {
Sm80,
Sm86,
Sm89,
Sm90,
Sm90a,
Sm100,
Sm120,
}Expand description
Selected target SM architecture for NVRTC compilation. Each variant
maps to a --gpu-architecture=... flag understood by the bundled
NVRTC toolchain. Variant naming matches NVCC’s published list:
Sm80,Sm86,Sm89— Ampere / AdaSm90,Sm90a— Hopper (sm_90aenables WGMMA / TMA / cluster intrinsics;sm_90keeps to the portable subset)Sm100,Sm120— Blackwell (B100/B200, RTX 50-series)
Variants§
Implementations§
Source§impl SmArch
impl SmArch
Sourcepub fn nvrtc_flag(self) -> &'static str
pub fn nvrtc_flag(self) -> &'static str
--gpu-architecture value (e.g. "compute_90a").
Sourcepub fn compute_capability(self) -> u32
pub fn compute_capability(self) -> u32
Numeric SM compute capability for cache keying (drops the a
suffix; Sm90a and Sm90 share the same cache namespace).
Trait Implementations§
impl Copy for SmArch
impl Eq for SmArch
impl StructuralPartialEq for SmArch
Auto Trait Implementations§
impl Freeze for SmArch
impl RefUnwindSafe for SmArch
impl Send for SmArch
impl Sync for SmArch
impl Unpin for SmArch
impl UnsafeUnpin for SmArch
impl UnwindSafe for SmArch
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.§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