#[non_exhaustive]#[repr(u32)]pub enum cudaLimit {
cudaLimitStackSize = 0,
cudaLimitPrintfFifoSize = 1,
cudaLimitMallocHeapSize = 2,
cudaLimitDevRuntimeSyncDepth = 3,
cudaLimitDevRuntimePendingLaunchCount = 4,
cudaLimitMaxL2FetchGranularity = 5,
cudaLimitPersistingL2CacheSize = 6,
}
Expand description
CUDA Limits
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.
cudaLimitStackSize = 0
< GPU thread stack size
cudaLimitPrintfFifoSize = 1
< GPU printf FIFO size
cudaLimitMallocHeapSize = 2
< GPU malloc heap size
cudaLimitDevRuntimeSyncDepth = 3
< GPU device runtime synchronize depth
cudaLimitDevRuntimePendingLaunchCount = 4
< GPU device runtime pending launch count
cudaLimitMaxL2FetchGranularity = 5
< A value between 0 and 128 that indicates the maximum fetch granularity of L2 (in Bytes). This is a hint
cudaLimitPersistingL2CacheSize = 6
< A size in bytes for L2 persisting lines cache size
Trait Implementations§
impl Copy for cudaLimit
impl Eq for cudaLimit
impl StructuralPartialEq for cudaLimit
Auto Trait Implementations§
impl Freeze for cudaLimit
impl RefUnwindSafe for cudaLimit
impl Send for cudaLimit
impl Sync for cudaLimit
impl Unpin for cudaLimit
impl UnwindSafe for cudaLimit
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