Enum kn_cuda_sys::bindings::CUfunc_cache_enum
source · #[non_exhaustive]#[repr(u32)]pub enum CUfunc_cache_enum {
CU_FUNC_CACHE_PREFER_NONE = 0,
CU_FUNC_CACHE_PREFER_SHARED = 1,
CU_FUNC_CACHE_PREFER_L1 = 2,
CU_FUNC_CACHE_PREFER_EQUAL = 3,
}Expand description
Function cache 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_FUNC_CACHE_PREFER_NONE = 0
< no preference for shared memory or L1 (default)
CU_FUNC_CACHE_PREFER_SHARED = 1
< prefer larger shared memory and smaller L1 cache
CU_FUNC_CACHE_PREFER_L1 = 2
< prefer larger L1 cache and smaller shared memory
CU_FUNC_CACHE_PREFER_EQUAL = 3
< prefer equal sized L1 cache and shared memory
Trait Implementations§
source§impl Clone for CUfunc_cache_enum
impl Clone for CUfunc_cache_enum
source§fn clone(&self) -> CUfunc_cache_enum
fn clone(&self) -> CUfunc_cache_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§impl Debug for CUfunc_cache_enum
impl Debug for CUfunc_cache_enum
source§impl Hash for CUfunc_cache_enum
impl Hash for CUfunc_cache_enum
source§impl PartialEq for CUfunc_cache_enum
impl PartialEq for CUfunc_cache_enum
source§fn eq(&self, other: &CUfunc_cache_enum) -> bool
fn eq(&self, other: &CUfunc_cache_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUfunc_cache_enum
impl Eq for CUfunc_cache_enum
impl StructuralPartialEq for CUfunc_cache_enum
Auto Trait Implementations§
impl RefUnwindSafe for CUfunc_cache_enum
impl Send for CUfunc_cache_enum
impl Sync for CUfunc_cache_enum
impl Unpin for CUfunc_cache_enum
impl UnwindSafe for CUfunc_cache_enum
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