#[repr(transparent)]pub struct CUshared_carveout_enum(pub c_int);Expand description
Shared memory carveout configurations. These may be passed to ::cuFuncSetAttribute or ::cuKernelSetAttribute
Tuple Fields§
§0: c_intImplementations§
Sourcepub const CU_SHAREDMEM_CARVEOUT_DEFAULT: CUshared_carveout_enum
pub const CU_SHAREDMEM_CARVEOUT_DEFAULT: CUshared_carveout_enum
No preference for shared memory or L1 (default).
Sourcepub const CU_SHAREDMEM_CARVEOUT_MAX_SHARED: CUshared_carveout_enum
pub const CU_SHAREDMEM_CARVEOUT_MAX_SHARED: CUshared_carveout_enum
Prefer maximum available shared memory, minimum L1 cache.
Sourcepub const CU_SHAREDMEM_CARVEOUT_MAX_L1: CUshared_carveout_enum
pub const CU_SHAREDMEM_CARVEOUT_MAX_L1: CUshared_carveout_enum
Prefer maximum available L1 cache, minimum shared memory.
Trait Implementations§
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
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