Enum kn_cuda_sys::bindings::cudaFuncAttribute
source · #[non_exhaustive]#[repr(u32)]pub enum cudaFuncAttribute {
cudaFuncAttributeMaxDynamicSharedMemorySize = 8,
cudaFuncAttributePreferredSharedMemoryCarveout = 9,
cudaFuncAttributeClusterDimMustBeSet = 10,
cudaFuncAttributeRequiredClusterWidth = 11,
cudaFuncAttributeRequiredClusterHeight = 12,
cudaFuncAttributeRequiredClusterDepth = 13,
cudaFuncAttributeNonPortableClusterSizeAllowed = 14,
cudaFuncAttributeClusterSchedulingPolicyPreference = 15,
cudaFuncAttributeMax = 16,
}Expand description
CUDA function attributes that can be set using ::cudaFuncSetAttribute
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
< Maximum dynamic shared memory size
< Preferred shared memory-L1 cache split
cudaFuncAttributeClusterDimMustBeSet = 10
< Indicator to enforce valid cluster dimension specification on kernel launch
cudaFuncAttributeRequiredClusterWidth = 11
< Required cluster width
cudaFuncAttributeRequiredClusterHeight = 12
< Required cluster height
cudaFuncAttributeRequiredClusterDepth = 13
< Required cluster depth
cudaFuncAttributeNonPortableClusterSizeAllowed = 14
< Whether non-portable cluster scheduling policy is supported
cudaFuncAttributeClusterSchedulingPolicyPreference = 15
< Required cluster scheduling policy preference
cudaFuncAttributeMax = 16
Trait Implementations§
source§impl Clone for cudaFuncAttribute
impl Clone for cudaFuncAttribute
source§fn clone(&self) -> cudaFuncAttribute
fn clone(&self) -> cudaFuncAttribute
Returns a copy of the value. Read more
1.0.0 · 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 cudaFuncAttribute
impl Debug for cudaFuncAttribute
source§impl Hash for cudaFuncAttribute
impl Hash for cudaFuncAttribute
source§impl PartialEq for cudaFuncAttribute
impl PartialEq for cudaFuncAttribute
source§fn eq(&self, other: &cudaFuncAttribute) -> bool
fn eq(&self, other: &cudaFuncAttribute) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for cudaFuncAttribute
impl Eq for cudaFuncAttribute
impl StructuralPartialEq for cudaFuncAttribute
Auto Trait Implementations§
impl Freeze for cudaFuncAttribute
impl RefUnwindSafe for cudaFuncAttribute
impl Send for cudaFuncAttribute
impl Sync for cudaFuncAttribute
impl Unpin for cudaFuncAttribute
impl UnwindSafe for cudaFuncAttribute
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