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§
Trait Implementations§
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 Copy for SmVersion
impl Eq 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