pub struct ComputeCapability {
pub major: u32,
pub minor: u32,
}Expand description
CUDA compute capability (major.minor), e.g. Blackwell 12.0.
Fields§
§major: u32§minor: u32Implementations§
Source§impl ComputeCapability
impl ComputeCapability
Sourcepub const REQUIRED: Self = REQUIRED_COMPUTE_CAPABILITY
pub const REQUIRED: Self = REQUIRED_COMPUTE_CAPABILITY
Same as REQUIRED_COMPUTE_CAPABILITY.
Sourcepub const fn meets_minimum(self) -> bool
pub const fn meets_minimum(self) -> bool
true when this capability meets the compiled PTX target.
The default floor is 12.0; MYELIN_CUDA_ARCH can select another
target at build time.
Trait Implementations§
Source§impl Clone for ComputeCapability
impl Clone for ComputeCapability
impl Copy for ComputeCapability
Source§impl Debug for ComputeCapability
impl Debug for ComputeCapability
Source§impl Display for ComputeCapability
impl Display for ComputeCapability
impl Eq for ComputeCapability
Source§impl Hash for ComputeCapability
impl Hash for ComputeCapability
Source§impl Ord for ComputeCapability
impl Ord for ComputeCapability
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ComputeCapability
impl PartialEq for ComputeCapability
Source§impl PartialOrd for ComputeCapability
impl PartialOrd for ComputeCapability
impl StructuralPartialEq for ComputeCapability
Auto Trait Implementations§
impl Freeze for ComputeCapability
impl RefUnwindSafe for ComputeCapability
impl Send for ComputeCapability
impl Sync for ComputeCapability
impl Unpin for ComputeCapability
impl UnsafeUnpin for ComputeCapability
impl UnwindSafe for ComputeCapability
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