pub enum PrefetchTarget {
Device(i32),
Host,
}Expand description
Target for mem_prefetch_async / mem_advise. The CUDA Runtime
API’s v1 variants take an ordinal — pass cudaCpuDeviceId (-1) for host.
Variants§
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 · 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
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