Files
leleka/crates/cuda-driver/tests/original_executor_probe.rs
T
Pavlo RatushnyiandClaude Sonnet 5.5 6cd926d719 test(bring-up): model-free GPU probes and tracing for the Original serve smoke
- crates/cuda-driver/tests/original_{arena,executor}_probe.rs: ignored probes that create the expert-group arena and the
  prompt-executor device objects without a model (seconds instead of a 15 minute model load).
- backend_original_serve_smoke.rs: load the resident expert source (the serve stack requires it) and print DBG progress.
- cache_original_prompt.rs and mmq_original_group.rs: DBG/PROBE eprintln tracing. Bring-up instrumentation; gate or remove
  before merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 01:30:40 +02:00

22 lines
1.8 KiB
Rust

//! Temporary model-free probe (bring-up debugging): create each device object OriginalPromptExecutor::new builds.
use leleka_cuda_driver::*;
macro_rules! step { ($name:expr, $e:expr) => {{ match $e { Ok(v) => { eprintln!("PROBE2 {} ok", $name); Some(v) } Err(e) => { eprintln!("PROBE2 {} ERR: {e:?}", $name); None } } }}; }
#[test]
#[ignore = "GPU bring-up probe; no model"]
fn executor_probe() {
let capacity: usize = std::env::var("PROBE_CAPACITY").ok().and_then(|v| v.parse().ok()).unwrap_or(1024);
let max_t: usize = std::env::var("PROBE_MAX_T").ok().and_then(|v| v.parse().ok()).unwrap_or(8);
let driver = Driver::load().expect("driver");
let device = driver.device(0).expect("device 0");
let context = device.create_context(24usize << 30).expect("context");
let _a = step!("original_prompt_device", context.original_prompt_device(capacity, PleBf16Mode::HighOnly, GrNativeProfile::HighOnly));
let _b = step!("original_gdn_prompt_device", context.original_gdn_prompt_device(capacity, GrNativeProfile::HighOnly));
let _c = step!("original_qsa_resident_prompt_device", context.original_qsa_resident_prompt_device(capacity, QsaNativePacking::HighOnly));
let _d = step!("original_qsa_resident_transport", context.original_qsa_resident_transport());
let _e = step!("original_qsa_resident_attention", context.original_qsa_resident_attention(capacity));
let _f = step!("original_mtp_prefill", context.original_mtp_prefill());
let _g = step!("original_mtp_scalar_prefill", context.original_mtp_scalar_prefill(max_t, capacity));
let _h = step!("original_qsa_resident_index", context.original_qsa_resident_index());
let _i = step!("qsa_prompt_kv.into_original_mapped_journal", context.qsa_prompt_kv().and_then(|k| k.into_original_mapped_journal()));
}