Enum hip_sys::hiprt::hipMemoryAdvise
source · #[non_exhaustive]#[repr(u32)]pub enum hipMemoryAdvise {
hipMemAdviseSetReadMostly,
hipMemAdviseUnsetReadMostly,
hipMemAdviseSetPreferredLocation,
hipMemAdviseUnsetPreferredLocation,
hipMemAdviseSetAccessedBy,
hipMemAdviseUnsetAccessedBy,
hipMemAdviseSetCoarseGrain,
hipMemAdviseUnsetCoarseGrain,
}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.
hipMemAdviseSetReadMostly
< Data will mostly be read and only occassionally < be written to
hipMemAdviseUnsetReadMostly
< Undo the effect of hipMemAdviseSetReadMostly
hipMemAdviseSetPreferredLocation
< Set the preferred location for the data as < the specified device
hipMemAdviseUnsetPreferredLocation
< Clear the preferred location for the data
hipMemAdviseSetAccessedBy
< Data will be accessed by the specified device, < so prevent page faults as much as possible
hipMemAdviseUnsetAccessedBy
< Let HIP to decide on the page faulting policy < for the specified device
hipMemAdviseSetCoarseGrain
< The default memory model is fine-grain. That allows < coherent operations between host and device, while < executing kernels. The coarse-grain can be used < for data that only needs to be coherent at dispatch < boundaries for better performance
hipMemAdviseUnsetCoarseGrain
< Restores cache coherency policy back to fine-grain
Trait Implementations§
source§impl Clone for hipMemoryAdvise
impl Clone for hipMemoryAdvise
source§fn clone(&self) -> hipMemoryAdvise
fn clone(&self) -> hipMemoryAdvise
Returns a copy 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 hipMemoryAdvise
impl Debug for hipMemoryAdvise
source§impl Hash for hipMemoryAdvise
impl Hash for hipMemoryAdvise
source§impl Ord for hipMemoryAdvise
impl Ord for hipMemoryAdvise
source§fn cmp(&self, other: &hipMemoryAdvise) -> Ordering
fn cmp(&self, other: &hipMemoryAdvise) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<hipMemoryAdvise> for hipMemoryAdvise
impl PartialEq<hipMemoryAdvise> for hipMemoryAdvise
source§fn eq(&self, other: &hipMemoryAdvise) -> bool
fn eq(&self, other: &hipMemoryAdvise) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemoryAdvise> for hipMemoryAdvise
impl PartialOrd<hipMemoryAdvise> for hipMemoryAdvise
source§fn partial_cmp(&self, other: &hipMemoryAdvise) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemoryAdvise) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for hipMemoryAdvise
impl Eq for hipMemoryAdvise
impl StructuralEq for hipMemoryAdvise
impl StructuralPartialEq for hipMemoryAdvise
Auto Trait Implementations§
impl RefUnwindSafe for hipMemoryAdvise
impl Send for hipMemoryAdvise
impl Sync for hipMemoryAdvise
impl Unpin for hipMemoryAdvise
impl UnwindSafe for hipMemoryAdvise
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