pub struct PersistentKernelInputs {
pub batch_size: u32,
pub per_launch_overhead_ns: u64,
pub per_item_kernel_ns: u64,
pub persistent_setup_overhead_ns: u64,
}Expand description
Inputs to the persistent-kernel decision.
Fields§
§batch_size: u32Number of small launches in the upcoming batch.
per_launch_overhead_ns: u64Average per-launch host-side overhead in nanoseconds. Measured on the live backend at startup; native is typically ~5_000 ns, portable typically ~25_000 ns.
per_item_kernel_ns: u64Average per-item kernel duration in nanoseconds. The dispatcher measures this on the warmup pass before the batch.
persistent_setup_overhead_ns: u64Setup cost of bringing up persistent mode (work-queue alloc, initial launch, signal handshake) in nanoseconds. native: ~50_000 for a fresh queue; portable: ~200_000.
Trait Implementations§
Source§impl Clone for PersistentKernelInputs
impl Clone for PersistentKernelInputs
Source§fn clone(&self) -> PersistentKernelInputs
fn clone(&self) -> PersistentKernelInputs
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 PersistentKernelInputs
Source§impl Debug for PersistentKernelInputs
impl Debug for PersistentKernelInputs
impl Eq for PersistentKernelInputs
Source§impl PartialEq for PersistentKernelInputs
impl PartialEq for PersistentKernelInputs
Source§fn eq(&self, other: &PersistentKernelInputs) -> bool
fn eq(&self, other: &PersistentKernelInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersistentKernelInputs
Auto Trait Implementations§
impl Freeze for PersistentKernelInputs
impl RefUnwindSafe for PersistentKernelInputs
impl Send for PersistentKernelInputs
impl Sync for PersistentKernelInputs
impl Unpin for PersistentKernelInputs
impl UnsafeUnpin for PersistentKernelInputs
impl UnwindSafe for PersistentKernelInputs
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.