pub enum PersistentKernelDecision {
StandardLaunches,
PersistentKernel {
savings_ns: u128,
},
}Expand description
Verdict returned by decide_persistent_kernel.
Variants§
StandardLaunches
Use the standard launch path - N separate kernel launches. Either the batch is too small to amortise persistent setup, or the per-item kernel is large enough that launch overhead is negligible.
PersistentKernel
Use persistent kernel mode - one launch + device-side queue
polling for batch_size work items.
Trait Implementations§
Source§impl Clone for PersistentKernelDecision
impl Clone for PersistentKernelDecision
Source§fn clone(&self) -> PersistentKernelDecision
fn clone(&self) -> PersistentKernelDecision
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 PersistentKernelDecision
Source§impl Debug for PersistentKernelDecision
impl Debug for PersistentKernelDecision
impl Eq for PersistentKernelDecision
Source§impl PartialEq for PersistentKernelDecision
impl PartialEq for PersistentKernelDecision
Source§fn eq(&self, other: &PersistentKernelDecision) -> bool
fn eq(&self, other: &PersistentKernelDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersistentKernelDecision
Auto Trait Implementations§
impl Freeze for PersistentKernelDecision
impl RefUnwindSafe for PersistentKernelDecision
impl Send for PersistentKernelDecision
impl Sync for PersistentKernelDecision
impl Unpin for PersistentKernelDecision
impl UnsafeUnpin for PersistentKernelDecision
impl UnwindSafe for PersistentKernelDecision
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.