#[repr(transparent)]pub struct cudaMemoryAdvise(pub c_uint);
Expand description
CUDA Memory Advise values
Tuple Fields§
§0: c_uint
Implementations§
Source§impl cudaMemoryAdvise
impl cudaMemoryAdvise
Sourcepub const cudaMemAdviseSetReadMostly: cudaMemoryAdvise
pub const cudaMemAdviseSetReadMostly: cudaMemoryAdvise
< Data will mostly be read and only occassionally be written to
Source§impl cudaMemoryAdvise
impl cudaMemoryAdvise
Sourcepub const cudaMemAdviseUnsetReadMostly: cudaMemoryAdvise
pub const cudaMemAdviseUnsetReadMostly: cudaMemoryAdvise
< Undo the effect of ::cudaMemAdviseSetReadMostly
Source§impl cudaMemoryAdvise
impl cudaMemoryAdvise
Sourcepub const cudaMemAdviseSetPreferredLocation: cudaMemoryAdvise
pub const cudaMemAdviseSetPreferredLocation: cudaMemoryAdvise
< Set the preferred location for the data as the specified device
Source§impl cudaMemoryAdvise
impl cudaMemoryAdvise
Sourcepub const cudaMemAdviseUnsetPreferredLocation: cudaMemoryAdvise
pub const cudaMemAdviseUnsetPreferredLocation: cudaMemoryAdvise
< Clear the preferred location for the data
Source§impl cudaMemoryAdvise
impl cudaMemoryAdvise
Sourcepub const cudaMemAdviseSetAccessedBy: cudaMemoryAdvise
pub const cudaMemAdviseSetAccessedBy: cudaMemoryAdvise
< Data will be accessed by the specified device, so prevent page faults as much as possible
Source§impl cudaMemoryAdvise
impl cudaMemoryAdvise
Sourcepub const cudaMemAdviseUnsetAccessedBy: cudaMemoryAdvise
pub const cudaMemAdviseUnsetAccessedBy: cudaMemoryAdvise
< Let the Unified Memory subsystem decide on the page faulting policy for the specified device
Trait Implementations§
Source§impl Clone for cudaMemoryAdvise
impl Clone for cudaMemoryAdvise
Source§fn clone(&self) -> cudaMemoryAdvise
fn clone(&self) -> cudaMemoryAdvise
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 cudaMemoryAdvise
impl Debug for cudaMemoryAdvise
Source§impl Hash for cudaMemoryAdvise
impl Hash for cudaMemoryAdvise
Source§impl PartialEq for cudaMemoryAdvise
impl PartialEq for cudaMemoryAdvise
impl Copy for cudaMemoryAdvise
impl Eq for cudaMemoryAdvise
impl StructuralPartialEq for cudaMemoryAdvise
Auto Trait Implementations§
impl Freeze for cudaMemoryAdvise
impl RefUnwindSafe for cudaMemoryAdvise
impl Send for cudaMemoryAdvise
impl Sync for cudaMemoryAdvise
impl Unpin for cudaMemoryAdvise
impl UnwindSafe for cudaMemoryAdvise
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