pub enum SettleAction {
PageLockForDevice,
LockResident,
LeavePageable,
}Expand description
What the loader must do to a bank it has just finished filling.
Always after the fill: the banks are lazy anonymous mappings, so page-locking an empty one faults and zero-fills every page, and the read then overwrites all of it – a whole redundant pass over hundreds of gigabytes.
Variants§
PageLockForDevice
Page-lock and register for device access (cudaHostRegister).
LockResident
Page-lock only (mlock): resident, no device address, no pin
quota spent.
LeavePageable
Nothing to do – a pageable bank is the mapping as allocated.
Trait Implementations§
Source§impl Clone for SettleAction
impl Clone for SettleAction
Source§fn clone(&self) -> SettleAction
fn clone(&self) -> SettleAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SettleAction
Source§impl Debug for SettleAction
impl Debug for SettleAction
impl Eq for SettleAction
Source§impl PartialEq for SettleAction
impl PartialEq for SettleAction
impl StructuralPartialEq for SettleAction
Auto Trait Implementations§
impl Freeze for SettleAction
impl RefUnwindSafe for SettleAction
impl Send for SettleAction
impl Sync for SettleAction
impl Unpin for SettleAction
impl UnsafeUnpin for SettleAction
impl UnwindSafe for SettleAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more