log the chosen QSA top-k kernels once

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-27 20:38:05 +01:00
co-authored by Claude Sonnet 5.5
parent d833654b3d
commit f998c13bbf
2 changed files with 4 additions and 0 deletions
@@ -628,6 +628,8 @@ impl<'a, 'ctx> OriginalVerifier<'ctx, OriginalVerifyWindowResources<'a, 'ctx>> {
if policy.qsa.cluster_topk {
let cc = resources.verifier_journal().window_device_attribute(gr::ATTR_COMPUTE_CAPABILITY_MAJOR)?;
policy.qsa.cluster_topk = cc >= 9 && qsa::CLUSTER.sealed().is_ok();
static SAID: std::sync::Once = std::sync::Once::new();
SAID.call_once(|| eprintln!("leleka-serve qsa decode top-k: {} (compute capability {cc})", if policy.qsa.cluster_topk { "thread-block cluster" } else { "qsa_topk_ref (cluster refused)" }));
}
let ple = resources.verifier_journal().has_ple();
let roles = if policy.pcie_mode == 2 {
+2
View File
@@ -69,6 +69,8 @@ pub(crate) fn topk_entry(tile_reach: usize) -> (usize, u32) {
None => TOPK_DEFAULT_WIDE,
}),
};
static SAID: std::sync::Once = std::sync::Once::new();
SAID.call_once(|| eprintln!("leleka-serve qsa prompt top-k: {} (tiles of {} blocks and more), override {}", if wide { "wide" } else { "fast" }, TOPK_WIDE_MIN_BLOCKS, TOPK_OVERRIDE.load(std::sync::atomic::Ordering::Relaxed)));
topk_choice(wide, tile_reach)
}
fn topk_choice(wide: bool, tile_reach: usize) -> (usize, u32) {