pub struct DsaSelectGeometry {
pub seq: usize,
pub q_rows: usize,
pub n_pools_full: usize,
pub n_pools: usize,
pub select_k: usize,
pub out_width: usize,
pub topk_np2: usize,
pub topk_smem: usize,
pub index_head_dim: usize,
pub index_heads: usize,
pub index_kpool: usize,
}Expand description
Launch geometry for one selection pass — every count the four kernels need, and every capacity check, decided before a single pointer is touched.
Fields§
§seq: usizeTokens resident in the indexer cache.
q_rows: usizeQuery rows selecting this pass (1 on a batch-1 decode step).
n_pools_full: usizePools dsa_kpool_compress writes, including the trailing partial one.
n_pools: usizePools that are real — the prefix everything downstream reads.
select_k: usizePools selected per query.
out_width: usizeEmitted index-row width.
topk_np2: usizeTile width the top-k select walks the pool axis in (clamped down below one tile).
topk_smem: usizeShared memory dsa_topk_pools needs, in bytes.
index_head_dim: usizeChannels per compress block.
index_heads: usize§index_kpool: usizeImplementations§
Trait Implementations§
Source§impl Clone for DsaSelectGeometry
impl Clone for DsaSelectGeometry
Source§fn clone(&self) -> DsaSelectGeometry
fn clone(&self) -> DsaSelectGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DsaSelectGeometry
impl Debug for DsaSelectGeometry
Source§impl PartialEq for DsaSelectGeometry
impl PartialEq for DsaSelectGeometry
impl Copy for DsaSelectGeometry
impl Eq for DsaSelectGeometry
impl StructuralPartialEq for DsaSelectGeometry
Auto Trait Implementations§
impl Freeze for DsaSelectGeometry
impl RefUnwindSafe for DsaSelectGeometry
impl Send for DsaSelectGeometry
impl Sync for DsaSelectGeometry
impl Unpin for DsaSelectGeometry
impl UnwindSafe for DsaSelectGeometry
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
Compare self to
key and return true if they are equal.