#[non_exhaustive]#[repr(u32)]pub enum cudaMemoryAdvise {
cudaMemAdviseSetReadMostly = 1,
cudaMemAdviseUnsetReadMostly = 2,
cudaMemAdviseSetPreferredLocation = 3,
cudaMemAdviseUnsetPreferredLocation = 4,
cudaMemAdviseSetAccessedBy = 5,
cudaMemAdviseUnsetAccessedBy = 6,
}
Expand description
CUDA Memory Advise values
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.
cudaMemAdviseSetReadMostly = 1
< Data will mostly be read and only occassionally be written to
cudaMemAdviseUnsetReadMostly = 2
< Undo the effect of ::cudaMemAdviseSetReadMostly
cudaMemAdviseSetPreferredLocation = 3
< Set the preferred location for the data as the specified device
cudaMemAdviseUnsetPreferredLocation = 4
< Clear the preferred location for the data
cudaMemAdviseSetAccessedBy = 5
< Data will be accessed by the specified device, so prevent page faults as much as possible
cudaMemAdviseUnsetAccessedBy = 6
< 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