pub enum DerefMemType {
SysMem,
AlignedSysMem {
align_bytes: usize,
},
NumaMem {
node: u16,
page_type: PageType,
},
NumaPinnedMem {
node: u16,
page_type: PageType,
},
DistributedNumaMem {
nodes: Box<[NodeRatio]>,
page_type: PageType,
},
DistributedNumaMemWithLen {
nodes: Box<[NodeLen]>,
page_type: PageType,
},
CudaPinnedMem,
CudaUniMem,
}
Expand description
Dereferencable memory type specifier
These memory types can be directly accessed on the host.
Variants
SysMem
System memory allocated with Rust’s global allocator
AlignedSysMem
Fields
align_bytes: usize
Aligned system memory allocated with Rust’s global allocator
Alignment is specified in bytes.
NumaMem
NUMA memory allocated on the specified NUMA node and with the specified page type
NumaPinnedMem
NUMA memory allocated on the specified NUMA node, with the specified page type, and pinned with CUDA
DistributedNumaMem
NUMA memory distributed in proportion to a ratio over multiple NUMA nodes
DistributedNumaMemWithLen
NUMA memory distributed over multiple NUMA nodes using a length per node
CudaPinnedMem
CUDA pinned memory (using cudaHostAlloc())
CudaUniMem
CUDA unified memory
Implementations
sourceimpl DerefMemType
impl DerefMemType
Trait Implementations
sourceimpl Clone for DerefMemType
impl Clone for DerefMemType
sourcefn clone(&self) -> DerefMemType
fn clone(&self) -> DerefMemType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DerefMemType
impl Debug for DerefMemType
sourceimpl From<DerefMemType> for MemType
impl From<DerefMemType> for MemType
sourcefn from(dmt: DerefMemType) -> Self
fn from(dmt: DerefMemType) -> Self
Performs the conversion.
sourceimpl PartialEq<DerefMemType> for DerefMemType
impl PartialEq<DerefMemType> for DerefMemType
sourcefn eq(&self, other: &DerefMemType) -> bool
fn eq(&self, other: &DerefMemType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DerefMemType) -> bool
fn ne(&self, other: &DerefMemType) -> bool
This method tests for !=
.
sourceimpl TryFrom<MemType> for DerefMemType
impl TryFrom<MemType> for DerefMemType
impl StructuralPartialEq for DerefMemType
Auto Trait Implementations
impl RefUnwindSafe for DerefMemType
impl Send for DerefMemType
impl Sync for DerefMemType
impl Unpin for DerefMemType
impl UnwindSafe for DerefMemType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more