fix(sm86): regenerate the qsa_prompt_resolver companion after the kv-streaming reseal

The kv-streaming merge resealed crates/cuda-driver/src/qsa_prompt_resolver.ptx (0103ee9) after the sm_86
companion set was generated, so the table had no key for the new sm_120 body: the two arch_ptx unit tests
failed and the 3080 would have been handed the sm_120 image for the streamed-KV resolver.
`sm86_assets.py build` (CUDA 13.2.86) changes only that companion, MANIFEST.json and sm86_table.rs;
`sm86_assets.py check` OK (127 companions); leleka-cuda-driver --lib --features cuda-driver,sm86: 349 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-16 11:26:56 +02:00
co-authored by Claude Opus 5.5
parent 656925ec86
commit d82fee8bcd
3 changed files with 538 additions and 534 deletions
+5 -5
View File
@@ -1624,7 +1624,7 @@
"ptxas": "ok",
"recipe": "precise",
"recipe_confidence": "entries+flag-mode",
"retarget_rejected": "ptxas /home/para/sm86-work/build/mtp_original_prefill_quant.sm86.ptx, line 34613; error : Feature 'cvt.f16x2.e4m3x2' requires .target sm_89 or higher | ptxas /home/para/sm86-work/build/mtp_original_prefill_quant.sm86.ptx, line 36077; error : Feature 'cvt.f16x2.e4m3x2' requires .target sm_89 or higher | ptxas fatal : Ptx assembly aborted due to errors",
"retarget_rejected": "ptxas /home/para/laptop/sm86-work/build/mtp_original_prefill_quant.sm86.ptx, line 34613; error : Feature 'cvt.f16x2.e4m3x2' requires .target sm_89 or higher | ptxas /home/para/laptop/sm86-work/build/mtp_original_prefill_quant.sm86.ptx, line 36077; error : Feature 'cvt.f16x2.e4m3x2' requires .target sm_89 or higher | ptxas fatal : Ptx assembly aborted due to errors",
"rules": [],
"sm120_bytes": 1343875,
"sm120_nvcc": "13.0.88",
@@ -2494,13 +2494,13 @@
"count": 1
}
],
"sm120_bytes": 23782,
"sm120_bytes": 23915,
"sm120_nvcc": "13.2.86",
"sm120_path": "crates/cuda-driver/src/qsa_prompt_resolver.ptx",
"sm120_sha256": "748a2e0d5fcd12a9d49a20fa1556190b22b0630680c7a4ef398d901f47f471b3",
"sm120_sha256": "8d3ecbaecbf28445ba64485bdff3d91a21d87b85d5939a0152ef2f2414480e22",
"sm120_stored_nul": true,
"sm86_bytes": 23781,
"sm86_sha256": "2447167293973383cb42afd73fc280b14f679bae30ad84764ed74bd07d2a6ca8"
"sm86_bytes": 23914,
"sm86_sha256": "32d96ca6a72f40eda21d51d9f4d4d377c373c63783cc422910883bb8d8d8b08d"
},
{
"entries": 5,
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -440,13 +440,6 @@ pub(crate) static COMPANIONS: &[Companion] = &[
sha: [0x36, 0x1d, 0xb3, 0xe8, 0x47, 0x1e, 0x42, 0x77, 0x8a, 0x4b, 0x7d, 0x45, 0x9a, 0xf7, 0x28, 0x9a, 0xa8, 0xe8, 0x01, 0x7b, 0xb3, 0xa7, 0x45, 0x5e, 0x6a, 0xa2, 0xe0, 0x49, 0xb2, 0x2a, 0xd0, 0x93],
ptx: concat!(include_str!("../ptx-sm86/experimental_kv_q4.ptx"), "\0").as_bytes(),
},
Companion {
name: "qsa_prompt_resolver.ptx",
key: [0x74, 0x8a, 0x2e, 0x0d, 0x5f, 0xcd, 0x12, 0xa9, 0xd4, 0x9a, 0x20, 0xfa, 0x15, 0x56, 0x19, 0x0b, 0x22, 0xb0, 0x63, 0x06, 0x80, 0xc7, 0xa4, 0xef, 0x39, 0x8d, 0x90, 0x1f, 0x47, 0xf4, 0x71, 0xb3],
len: 23782,
sha: [0x24, 0x47, 0x16, 0x72, 0x93, 0x97, 0x33, 0x83, 0xcb, 0x42, 0xaf, 0xd7, 0x3f, 0xc2, 0x80, 0xb1, 0x4f, 0x67, 0x9b, 0xae, 0x30, 0xad, 0x84, 0x76, 0x4e, 0xd7, 0x4b, 0xd0, 0x7d, 0x2a, 0x6c, 0xa8],
ptx: concat!(include_str!("../ptx-sm86/qsa_prompt_resolver.ptx"), "\0").as_bytes(),
},
Companion {
name: "qwen_qsa_attention_native.ptx",
key: [0x77, 0x72, 0xe4, 0xe7, 0x5d, 0x78, 0xa9, 0x91, 0x01, 0x44, 0xca, 0x10, 0x85, 0x51, 0x80, 0x0f, 0xd4, 0x29, 0x69, 0x55, 0x78, 0x15, 0x40, 0xaf, 0xb6, 0x5f, 0x53, 0xd6, 0x12, 0xd7, 0xe1, 0xf3],
@@ -545,6 +538,13 @@ pub(crate) static COMPANIONS: &[Companion] = &[
sha: [0x51, 0x62, 0x2e, 0x4f, 0x08, 0xa7, 0xe1, 0xfb, 0x52, 0x0f, 0xac, 0x0d, 0x0d, 0x8d, 0x2c, 0x3b, 0x61, 0xdc, 0xa1, 0x22, 0x70, 0x51, 0xaa, 0x14, 0xf6, 0xf7, 0x7d, 0xfc, 0x0a, 0xdf, 0x57, 0xad],
ptx: concat!(include_str!("../ptx-sm86/qsa_prompt_indexer.ptx"), "\0").as_bytes(),
},
Companion {
name: "qsa_prompt_resolver.ptx",
key: [0x8d, 0x3e, 0xcb, 0xae, 0xcb, 0xf2, 0x84, 0x45, 0xba, 0x64, 0x48, 0x5b, 0xdf, 0xf3, 0xd9, 0x1a, 0x21, 0xd8, 0x7b, 0x85, 0xd5, 0x93, 0x9a, 0x01, 0x52, 0xef, 0x2f, 0x24, 0x14, 0x48, 0x0e, 0x22],
len: 23915,
sha: [0x32, 0xd9, 0x6c, 0xa6, 0xa7, 0x2f, 0x40, 0xed, 0xa2, 0x1d, 0x51, 0xd9, 0xf4, 0xd4, 0xd3, 0x77, 0xc3, 0x73, 0xc6, 0x37, 0x83, 0xcc, 0x42, 0x29, 0x10, 0x88, 0x3b, 0xb8, 0xd8, 0xd8, 0xb0, 0x8d],
ptx: concat!(include_str!("../ptx-sm86/qsa_prompt_resolver.ptx"), "\0").as_bytes(),
},
Companion {
name: "q2_0_q8_1.ptx",
key: [0x8e, 0x81, 0xdb, 0xba, 0xa7, 0x6d, 0x85, 0x16, 0x47, 0x63, 0x39, 0xc1, 0x68, 0xf1, 0xd9, 0xc1, 0x72, 0x34, 0x1a, 0x78, 0xcc, 0xec, 0xda, 0x08, 0x71, 0x4a, 0x13, 0xa5, 0x68, 0x7e, 0x3b, 0x6e],