pub struct PlanKey {
pub op_kind: OpKind,
pub modes_hash: u64,
pub extents_hash: u64,
pub alignment: u32,
pub compute_desc_tag: u32,
pub dtype_tag: &'static str,
pub algo: i32,
}Expand description
Hashable plan key. Modes / extents arrive pre-hashed (u64) so the
key remains Copy + Eq.
Fields§
§op_kind: OpKind§modes_hash: u64§extents_hash: u64§alignment: u32§compute_desc_tag: u32§dtype_tag: &'static str§algo: i320 means “default algorithm”. Autotune writes the chosen
cutensorAlgo_t as i32 here so autotuned plans get their own
cache slot.
Trait Implementations§
impl Copy for PlanKey
impl Eq for PlanKey
impl StructuralPartialEq for PlanKey
Auto Trait Implementations§
impl Freeze for PlanKey
impl RefUnwindSafe for PlanKey
impl Send for PlanKey
impl Sync for PlanKey
impl Unpin for PlanKey
impl UnsafeUnpin for PlanKey
impl UnwindSafe for PlanKey
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more