pub enum PrefetchTarget {
Device(i32),
Host,
HostNuma(i32),
HostNumaCurrent,
}Expand description
Destination for mem_prefetch_v2 / mem_advise_v2. Composes the
CUmemLocation::{type_, id} pair.
Variants§
Device(i32)
Prefetch to a specific device.
Host
Prefetch to the host (unified memory).
HostNuma(i32)
Prefetch to a specific NUMA node on the host.
HostNumaCurrent
Prefetch to the current host thread’s NUMA node.
Trait Implementations§
Source§impl Clone for PrefetchTarget
impl Clone for PrefetchTarget
Source§fn clone(&self) -> PrefetchTarget
fn clone(&self) -> PrefetchTarget
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 PrefetchTarget
impl Debug for PrefetchTarget
Source§impl PartialEq for PrefetchTarget
impl PartialEq for PrefetchTarget
Source§fn eq(&self, other: &PrefetchTarget) -> bool
fn eq(&self, other: &PrefetchTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PrefetchTarget
impl Eq for PrefetchTarget
impl StructuralPartialEq for PrefetchTarget
Auto Trait Implementations§
impl Freeze for PrefetchTarget
impl RefUnwindSafe for PrefetchTarget
impl Send for PrefetchTarget
impl Sync for PrefetchTarget
impl Unpin for PrefetchTarget
impl UnsafeUnpin for PrefetchTarget
impl UnwindSafe for PrefetchTarget
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