#[non_exhaustive]#[repr(i32)]pub enum CUfunction_attribute {
MaxThreadsPerBlock = 0,
SharedSizeBytes = 1,
ConstSizeBytes = 2,
LocalSizeBytes = 3,
NumRegs = 4,
PtxVersion = 5,
BinaryVersion = 6,
CacheModeCa = 7,
MaxDynamicSharedSizeBytes = 8,
PreferredSharedMemoryCarveout = 9,
}Expand description
Function attribute identifiers passed to cuFuncGetAttribute.
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.
MaxThreadsPerBlock = 0
Maximum threads per block for this function.
Shared memory used by this function (bytes).
ConstSizeBytes = 2
Size of user-allocated constant memory (bytes).
LocalSizeBytes = 3
Size of local memory used by each thread (bytes).
NumRegs = 4
Number of registers used by each thread.
PtxVersion = 5
PTX virtual architecture version.
BinaryVersion = 6
Binary architecture version.
CacheModeCa = 7
Whether this function has been cached.
Maximum dynamic shared memory size (bytes).
Preferred shared memory carve-out.
Trait Implementations§
Source§impl Clone for CUfunction_attribute
impl Clone for CUfunction_attribute
Source§fn clone(&self) -> CUfunction_attribute
fn clone(&self) -> CUfunction_attribute
Returns a duplicate 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 CUfunction_attribute
impl Debug for CUfunction_attribute
Source§impl Hash for CUfunction_attribute
impl Hash for CUfunction_attribute
Source§impl PartialEq for CUfunction_attribute
impl PartialEq for CUfunction_attribute
impl Copy for CUfunction_attribute
impl Eq for CUfunction_attribute
impl StructuralPartialEq for CUfunction_attribute
Auto Trait Implementations§
impl Freeze for CUfunction_attribute
impl RefUnwindSafe for CUfunction_attribute
impl Send for CUfunction_attribute
impl Sync for CUfunction_attribute
impl Unpin for CUfunction_attribute
impl UnsafeUnpin for CUfunction_attribute
impl UnwindSafe for CUfunction_attribute
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