pub struct CudaMegakernelDeviceKey {
pub sm_major: u16,
pub sm_minor: u16,
pub warp_size: u16,
pub supports_grid_sync: bool,
pub supports_tensor_cores: bool,
pub max_workgroup_size: u32,
}Expand description
CUDA device feature signature that invalidates cached megakernel plans.
Fields§
§sm_major: u16CUDA SM major version.
sm_minor: u16CUDA SM minor version.
warp_size: u16Hardware warp size.
supports_grid_sync: boolWhether cooperative grid synchronization is available.
supports_tensor_cores: boolWhether tensor-core lowering is available for this backend session.
max_workgroup_size: u32Maximum threads accepted for one workgroup/block.
Trait Implementations§
Source§impl Clone for CudaMegakernelDeviceKey
impl Clone for CudaMegakernelDeviceKey
Source§fn clone(&self) -> CudaMegakernelDeviceKey
fn clone(&self) -> CudaMegakernelDeviceKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CudaMegakernelDeviceKey
impl Debug for CudaMegakernelDeviceKey
Source§impl From<&CudaDeviceCaps> for CudaMegakernelDeviceKey
impl From<&CudaDeviceCaps> for CudaMegakernelDeviceKey
Source§fn from(caps: &CudaDeviceCaps) -> Self
fn from(caps: &CudaDeviceCaps) -> Self
Converts to this type from the input type.
Source§impl Hash for CudaMegakernelDeviceKey
impl Hash for CudaMegakernelDeviceKey
Source§impl Ord for CudaMegakernelDeviceKey
impl Ord for CudaMegakernelDeviceKey
Source§fn cmp(&self, other: &CudaMegakernelDeviceKey) -> Ordering
fn cmp(&self, other: &CudaMegakernelDeviceKey) -> Ordering
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 PartialEq for CudaMegakernelDeviceKey
impl PartialEq for CudaMegakernelDeviceKey
Source§fn eq(&self, other: &CudaMegakernelDeviceKey) -> bool
fn eq(&self, other: &CudaMegakernelDeviceKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CudaMegakernelDeviceKey
impl PartialOrd for CudaMegakernelDeviceKey
impl Copy for CudaMegakernelDeviceKey
impl Eq for CudaMegakernelDeviceKey
impl StructuralPartialEq for CudaMegakernelDeviceKey
Auto Trait Implementations§
impl Freeze for CudaMegakernelDeviceKey
impl RefUnwindSafe for CudaMegakernelDeviceKey
impl Send for CudaMegakernelDeviceKey
impl Sync for CudaMegakernelDeviceKey
impl Unpin for CudaMegakernelDeviceKey
impl UnsafeUnpin for CudaMegakernelDeviceKey
impl UnwindSafe for CudaMegakernelDeviceKey
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.