Enum kn_cuda_sys::bindings::CUsharedconfig_enum
source · #[non_exhaustive]#[repr(u32)]pub enum CUsharedconfig_enum {
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = 0,
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = 1,
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = 2,
}Expand description
Shared memory configurations
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.
CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = 0
< set default shared memory bank size
CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = 1
< set shared memory bank width to four bytes
CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = 2
< set shared memory bank width to eight bytes
Trait Implementations§
source§fn clone(&self) -> CUsharedconfig_enum
fn clone(&self) -> CUsharedconfig_enum
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§fn eq(&self, other: &CUsharedconfig_enum) -> bool
fn eq(&self, other: &CUsharedconfig_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.Auto Trait Implementations§
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