#[non_exhaustive]#[repr(u32)]pub enum CUlimit {
StackSize = 0,
PrintfFifoSize = 1,
MallocHeapSize = 2,
DevRuntimeSyncDepth = 3,
DevRuntimePendingLaunchCount = 4,
MaxL2FetchGranularity = 5,
PersistingL2CacheSize = 6,
}Expand description
Context limit identifiers for cuCtxSetLimit / cuCtxGetLimit.
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.
StackSize = 0
Stack size for each GPU thread.
PrintfFifoSize = 1
Size of the printf FIFO.
MallocHeapSize = 2
Size of the heap used by malloc() on the device.
DevRuntimeSyncDepth = 3
Maximum nesting depth of a device runtime launch.
DevRuntimePendingLaunchCount = 4
Maximum number of outstanding device runtime launches.
MaxL2FetchGranularity = 5
L2 cache fetch granularity.
PersistingL2CacheSize = 6
Maximum persisting L2 cache size.
Trait Implementations§
impl Copy for CUlimit
impl Eq for CUlimit
impl StructuralPartialEq for CUlimit
Auto Trait Implementations§
impl Freeze for CUlimit
impl RefUnwindSafe for CUlimit
impl Send for CUlimit
impl Sync for CUlimit
impl Unpin for CUlimit
impl UnsafeUnpin for CUlimit
impl UnwindSafe for CUlimit
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