fix(jit): key the JIT cache on arch and mcc version; stop guessing mp_31 #293
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 256 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.332
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #293"
general
weight: 0.35
yeahdongcn
The JIT build directory was the kernel name alone (
jit.py:124,172), so a.sobuilt for one arch or one compiler was reused by the next. On MUSA that is a correctness hole, not a stale-cache annoyance: a cubin for the wrong arch loads, runs, returns success frommusaDeviceSynchronizeand leaves the output buffer untouched, so the failure mode is a wrong result with no diagnostic.Changes
<kernel>__<arches>__mcc<version>, e.g.vllm_musa_moe__mp_31__mcc5.2.0. Switching arch or mcc now forces a rebuild instead of silently reloading a foreign binary._musa_arch_flags()no longer falls back to--offload-arch=mp_31when the device query fails. It raises and namesVLLM_MUSA_ARCH_LISTas the way to build without a visible device. Guessing the arch was the one thing turning a loud failure into a silent wrong answer._mcc_version()anchors on themcc version X.Y.Zline.mcc --versionprints the clang base version first (clang version 14.0.0 ...), so a bare X.Y.Z search tags every build with 14.0.0 and hides real mcc changes.musa_arch_define()replaces the three hardcoded-D__MUSA_ARCH_LIST__=310innorm.py(x2) andallreduce.py, and refuses a multi-arch build rather than emit one arch's value for a fat binary:tl_templates/musa/*.hcompare that macro against a single__MUSA_ARCH__(== 310,>= 220), so a fat build would silently compile the wrong template branch.Verification
S5000 (10.20.34.82#1, driver 5.2.0-server, mcc 5.2.0, torch 2.11.0.post2+musa5.2.0):
New tests pin: explicit arch list wins; a fat list is preserved in the flags but refused by
musa_arch_define; no mp_31 fallback when the device query fails; the tag distinguishes both arch and compiler.