#[non_exhaustive]#[repr(u32)]pub enum cudaGraphMemAttributeType {
cudaGraphMemAttrUsedMemCurrent = 1,
cudaGraphMemAttrUsedMemHigh = 2,
cudaGraphMemAttrReservedMemCurrent = 3,
cudaGraphMemAttrReservedMemHigh = 4,
}
Expand description
Graph memory attributes
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.
cudaGraphMemAttrUsedMemCurrent = 1
(value type = cuuint64_t) Amount of memory, in bytes, currently associated with graphs.
cudaGraphMemAttrUsedMemHigh = 2
(value type = cuuint64_t) High watermark of memory, in bytes, associated with graphs since the last time it was reset. High watermark can only be reset to zero.
cudaGraphMemAttrReservedMemCurrent = 3
(value type = cuuint64_t) Amount of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator.
cudaGraphMemAttrReservedMemHigh = 4
(value type = cuuint64_t) High watermark of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator.
Trait Implementations§
Source§impl Clone for cudaGraphMemAttributeType
impl Clone for cudaGraphMemAttributeType
Source§fn clone(&self) -> cudaGraphMemAttributeType
fn clone(&self) -> cudaGraphMemAttributeType
Returns a duplicate 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 cudaGraphMemAttributeType
impl Debug for cudaGraphMemAttributeType
Source§impl Hash for cudaGraphMemAttributeType
impl Hash for cudaGraphMemAttributeType
impl Copy for cudaGraphMemAttributeType
impl Eq for cudaGraphMemAttributeType
impl StructuralPartialEq for cudaGraphMemAttributeType
Auto Trait Implementations§
impl Freeze for cudaGraphMemAttributeType
impl RefUnwindSafe for cudaGraphMemAttributeType
impl Send for cudaGraphMemAttributeType
impl Sync for cudaGraphMemAttributeType
impl Unpin for cudaGraphMemAttributeType
impl UnwindSafe for cudaGraphMemAttributeType
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