#[non_exhaustive]#[repr(u32)]pub enum CUmemAllocationType {
Invalid = 0,
Pinned = 1,
Max = 2_147_483_647,
}Expand description
Type of memory allocation requested via the VMM APIs.
Mirrors CUmemAllocationType in cuda.h.
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.
Invalid = 0
Invalid / uninitialised allocation type.
Pinned = 1
Pinned (page-locked) GPU memory backed by physical device frames.
Max = 2_147_483_647
Sentinel value used by the CUDA driver to mark forward-compatible extensions; always equal to the maximum 32-bit signed integer.
Trait Implementations§
Source§impl Clone for CUmemAllocationType
impl Clone for CUmemAllocationType
Source§fn clone(&self) -> CUmemAllocationType
fn clone(&self) -> CUmemAllocationType
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 CUmemAllocationType
impl Debug for CUmemAllocationType
Source§impl Hash for CUmemAllocationType
impl Hash for CUmemAllocationType
Source§impl PartialEq for CUmemAllocationType
impl PartialEq for CUmemAllocationType
impl Copy for CUmemAllocationType
impl Eq for CUmemAllocationType
impl StructuralPartialEq for CUmemAllocationType
Auto Trait Implementations§
impl Freeze for CUmemAllocationType
impl RefUnwindSafe for CUmemAllocationType
impl Send for CUmemAllocationType
impl Sync for CUmemAllocationType
impl Unpin for CUmemAllocationType
impl UnsafeUnpin for CUmemAllocationType
impl UnwindSafe for CUmemAllocationType
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