#[repr(transparent)]pub struct CUmem_advise_enum(pub c_uint);Expand description
Memory advise values.
Tuple Fields§
§0: c_uintImplementations§
Source§impl CUmem_advise_enum
impl CUmem_advise_enum
Sourcepub const CU_MEM_ADVISE_SET_READ_MOSTLY: CUmem_advise_enum
pub const CU_MEM_ADVISE_SET_READ_MOSTLY: CUmem_advise_enum
Data will mostly be read and only occasionally be written to.
Sourcepub const CU_MEM_ADVISE_UNSET_READ_MOSTLY: CUmem_advise_enum
pub const CU_MEM_ADVISE_UNSET_READ_MOSTLY: CUmem_advise_enum
Undo the effect of CUmem_advise_enum::CU_MEM_ADVISE_SET_READ_MOSTLY.
Sourcepub const CU_MEM_ADVISE_SET_PREFERRED_LOCATION: CUmem_advise_enum
pub const CU_MEM_ADVISE_SET_PREFERRED_LOCATION: CUmem_advise_enum
Set the preferred location for the data as the specified device.
Sourcepub const CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION: CUmem_advise_enum
pub const CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION: CUmem_advise_enum
Clear the preferred location for the data.
Sourcepub const CU_MEM_ADVISE_SET_ACCESSED_BY: CUmem_advise_enum
pub const CU_MEM_ADVISE_SET_ACCESSED_BY: CUmem_advise_enum
Data will be accessed by the specified device, so prevent page faults as much as possible.
Sourcepub const CU_MEM_ADVISE_UNSET_ACCESSED_BY: CUmem_advise_enum
pub const CU_MEM_ADVISE_UNSET_ACCESSED_BY: CUmem_advise_enum
Let the Unified Memory subsystem decide on the page faulting policy for the specified device.
Trait Implementations§
Source§impl Clone for CUmem_advise_enum
impl Clone for CUmem_advise_enum
impl Copy for CUmem_advise_enum
Source§impl Debug for CUmem_advise_enum
impl Debug for CUmem_advise_enum
impl Eq for CUmem_advise_enum
Source§impl Hash for CUmem_advise_enum
impl Hash for CUmem_advise_enum
Source§impl Ord for CUmem_advise_enum
impl Ord for CUmem_advise_enum
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CUmem_advise_enum
impl PartialEq for CUmem_advise_enum
Source§impl PartialOrd for CUmem_advise_enum
impl PartialOrd for CUmem_advise_enum
impl StructuralPartialEq for CUmem_advise_enum
Auto Trait Implementations§
impl Forget for CUmem_advise_enum
impl Freeze for CUmem_advise_enum
impl Move for CUmem_advise_enum
impl RefUnwindSafe for CUmem_advise_enum
impl Send for CUmem_advise_enum
impl Sync for CUmem_advise_enum
impl Unpin for CUmem_advise_enum
impl UnsafeUnpin for CUmem_advise_enum
impl UnwindSafe for CUmem_advise_enum
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