pub struct CommandReuseInputs {
pub repeat_count: u32,
pub per_launch_overhead_ns: u64,
pub record_overhead_ns: u64,
pub replay_overhead_ns: u64,
}Expand description
Inputs to the command-reuse decision.
Fields§
§repeat_count: u32Number of times this exact dispatch shape will be repeated (the same Program + bindings + workload count).
per_launch_overhead_ns: u64Per-launch driver API overhead in nanoseconds. Same number the persistent-kernel policy uses.
record_overhead_ns: u64One-time cost of recording the native command sequence.
replay_overhead_ns: u64Per-replay cost of the native command-reuse primitive.
Trait Implementations§
Source§impl Clone for CommandReuseInputs
impl Clone for CommandReuseInputs
Source§fn clone(&self) -> CommandReuseInputs
fn clone(&self) -> CommandReuseInputs
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 CommandReuseInputs
Source§impl Debug for CommandReuseInputs
impl Debug for CommandReuseInputs
impl Eq for CommandReuseInputs
Source§impl PartialEq for CommandReuseInputs
impl PartialEq for CommandReuseInputs
Source§fn eq(&self, other: &CommandReuseInputs) -> bool
fn eq(&self, other: &CommandReuseInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandReuseInputs
Auto Trait Implementations§
impl Freeze for CommandReuseInputs
impl RefUnwindSafe for CommandReuseInputs
impl Send for CommandReuseInputs
impl Sync for CommandReuseInputs
impl Unpin for CommandReuseInputs
impl UnsafeUnpin for CommandReuseInputs
impl UnwindSafe for CommandReuseInputs
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.