#[non_exhaustive]#[repr(u32)]pub enum CUmemLocationType {
Invalid = 0,
Device = 1,
Host = 2,
HostNuma = 3,
HostNumaCurrent = 4,
}Expand description
Specifies the kind of location described by a CUmemLocation.
Mirrors CUmemLocationType in cuda.h. Used by the virtual-memory
management APIs to identify where a memory allocation resides or which
device should be granted access.
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 location type.
Device = 1
Location is a CUDA device (the id field is a device ordinal).
Host = 2
Location is the host (CPU) memory.
HostNuma = 3
Location is a specific NUMA node on the host.
HostNumaCurrent = 4
Location is the NUMA node currently bound to the calling thread.
Trait Implementations§
Source§impl Clone for CUmemLocationType
impl Clone for CUmemLocationType
Source§fn clone(&self) -> CUmemLocationType
fn clone(&self) -> CUmemLocationType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CUmemLocationType
impl Debug for CUmemLocationType
Source§impl Hash for CUmemLocationType
impl Hash for CUmemLocationType
Source§impl PartialEq for CUmemLocationType
impl PartialEq for CUmemLocationType
Source§fn eq(&self, other: &CUmemLocationType) -> bool
fn eq(&self, other: &CUmemLocationType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CUmemLocationType
impl Eq for CUmemLocationType
impl StructuralPartialEq for CUmemLocationType
Auto Trait Implementations§
impl Freeze for CUmemLocationType
impl RefUnwindSafe for CUmemLocationType
impl Send for CUmemLocationType
impl Sync for CUmemLocationType
impl Unpin for CUmemLocationType
impl UnsafeUnpin for CUmemLocationType
impl UnwindSafe for CUmemLocationType
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