pub struct CudaKernelRequirement {
pub min_sm_major: u16,
pub min_sm_minor: u16,
pub requested_threads_per_block: u32,
pub requested_shared_memory_bytes: u64,
pub requires_cooperative_launch: bool,
pub requires_tensor_cores: bool,
}Expand description
Kernel requirements that must be met before launch.
Fields§
§min_sm_major: u16Minimum CUDA SM major version.
min_sm_minor: u16Minimum CUDA SM minor version when major versions match.
requested_threads_per_block: u32Threads per block requested by the kernel.
Shared memory per block requested by the kernel.
requires_cooperative_launch: boolWhether the kernel requires cooperative launch.
requires_tensor_cores: boolWhether the kernel requires tensor-core instructions.
Trait Implementations§
Source§impl Clone for CudaKernelRequirement
impl Clone for CudaKernelRequirement
Source§fn clone(&self) -> CudaKernelRequirement
fn clone(&self) -> CudaKernelRequirement
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 CudaKernelRequirement
impl Debug for CudaKernelRequirement
Source§impl PartialEq for CudaKernelRequirement
impl PartialEq for CudaKernelRequirement
Source§fn eq(&self, other: &CudaKernelRequirement) -> bool
fn eq(&self, other: &CudaKernelRequirement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CudaKernelRequirement
impl Eq for CudaKernelRequirement
impl StructuralPartialEq for CudaKernelRequirement
Auto Trait Implementations§
impl Freeze for CudaKernelRequirement
impl RefUnwindSafe for CudaKernelRequirement
impl Send for CudaKernelRequirement
impl Sync for CudaKernelRequirement
impl Unpin for CudaKernelRequirement
impl UnsafeUnpin for CudaKernelRequirement
impl UnwindSafe for CudaKernelRequirement
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> 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.