Ports engine/strata qsa_decode_attn.cu attn_chunk_kernel_pre75<mode 1, NC 2> and attn_merge_v2_kernel<16> as sm120_attn_daily.cu (new sealed asset, group sm120-decode) and selects them in QsaWindow::decode_attention when policy.qsa.attn_daily is set. The policy bit is resolved at window recording from the card (cc 12.0), LELEKA_SM120_PERF=0 (whole set off) and LELEKA_SM120_ATTN_DAILY=0|1 (wins in both directions, any card). Model-free probe tools/decode-sm120/sm120_probe.cpp on the RTX 5090: chunk partials, merge(old) of both partial sets and merge_v2 are byte-identical to the sealed Original kernels on 66 cases (T 1,2,4,5,6,8 x n_ids 2051..0, masked pages, two score ranges). Per call at T=4: chunk 29.8 -> 20.3 us, merge 6.5 -> 2.9 us (warm L2, graph-timed); 12 QSA layers per window. Not yet measured end to end. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
20 lines
1.0 KiB
Bash
20 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
# Run cuda-driver unit tests of THIS worktree in WSL (no GPU needed for the window planner / seal tests).
|
|
# scripts/decode-sm120/test_driver.sh [cargo test filter...] run from Git Bash in the worktree
|
|
set -euo pipefail
|
|
root=$(git rev-parse --show-toplevel)
|
|
tar_win="$root/../wt-sm120-src.tar"
|
|
git -C "$root" -c core.autocrlf=false ls-files -co --exclude-standard -z | tar --force-local -C "$root" --null -T - -cf "$tar_win"
|
|
w=$(cygpath -m "$tar_win"); tar_wsl="/mnt/c${w#C:}"
|
|
wsl -d Ubuntu -e bash -lc "
|
|
set -e
|
|
source ~/.cargo/env
|
|
export PATH=\$HOME/cuda-toolkits/13.2.2/bin:\$HOME/.cargo/bin:/usr/local/bin:/usr/bin:/bin
|
|
rm -rf ~/sm120-src && mkdir -p ~/sm120-src && tar -xf '$tar_wsl' -C ~/sm120-src
|
|
cd ~/sm120-src
|
|
export CARGO_TARGET_DIR=\$HOME/sm120-target
|
|
nice -n 10 cargo test --locked --release -p leleka-cuda-driver --features cuda-driver --lib -- $* > ~/sm120-test.log 2>&1 || true
|
|
"
|
|
rm -f "$tar_win"
|
|
wsl -d Ubuntu -e bash -lc "grep -E '^error|^test result|FAILED|panicked' -A8 ~/sm120-test.log | head -100"
|