pub struct SmVersion(pub u32);Expand description
SM (Streaming Multiprocessor) version encoded as major*10 + minor.
Examples: 80 = SM 8.0 (Ampere A100), 90 = SM 9.0 (Hopper H100), 120 = SM 12.0 (Blackwell).
Tuple Fields§
§0: u32Implementations§
Source§impl SmVersion
impl SmVersion
Sourcepub fn ptx_version_str(self) -> &'static str
pub fn ptx_version_str(self) -> &'static str
PTX .version directive string for this SM.
PTX ISA 8.7 covers SM 12.x, 8.4 covers SM 9.x, 8.0 covers SM 8.x, 7.5 covers SM 7.x.
Sourcepub fn target_str(self) -> String
pub fn target_str(self) -> String
PTX .target string for this SM (e.g., "sm_80").
Trait Implementations§
impl Copy for SmVersion
impl Eq for SmVersion
Source§impl Ord for SmVersion
impl Ord for SmVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SmVersion
impl PartialOrd for SmVersion
impl StructuralPartialEq for SmVersion
Auto Trait Implementations§
impl Freeze for SmVersion
impl RefUnwindSafe for SmVersion
impl Send for SmVersion
impl Sync for SmVersion
impl Unpin for SmVersion
impl UnsafeUnpin for SmVersion
impl UnwindSafe for SmVersion
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