#[non_exhaustive]#[repr(u32)]pub enum Limit {
PerBlockMemorySize = 10,
StackSize = 0,
PrintfFifoSize = 1,
MallocHeapSize = 2,
DevRuntimeSyncDepth = 3,
DevRuntimePendingLaunchCount = 4,
MaxL2FetchGranularity = 5,
PersistingL2CacheSize = 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.
PerBlockMemorySize = 10
Per-block memory size.
StackSize = 0
GPU thread stack size.
PrintfFifoSize = 1
GPU printf FIFO size.
MallocHeapSize = 2
GPU malloc heap size.
DevRuntimeSyncDepth = 3
GPU device runtime synchronize depth.
DevRuntimePendingLaunchCount = 4
GPU device runtime pending launch count.
MaxL2FetchGranularity = 5
A value between 0 and 128 that indicates the maximum fetch granularity of L2, in bytes. The value is a hint.
PersistingL2CacheSize = 6
A size in bytes for L2 persisting lines cache size.
Trait Implementations§
impl Copy for Limit
impl Eq for Limit
impl StructuralPartialEq for Limit
Source§impl TryFrom<cudaLimit> for Limit
impl TryFrom<cudaLimit> for Limit
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for Limit
impl Freeze for Limit
impl Move for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnsafeUnpin for Limit
impl UnwindSafe for Limit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.