fix(tensilelite): check --split-dim and the placement format before the split placement rules #16242
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 240 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.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16242"
general
weight: 0.35
yzhang93
JIRA ID : AIHPBLAS-5609
Motivation
Follow-ups from the review of #16186, as a PR against its branch, so they land in #16186 before it merges to develop.
Technical Details
client/main.cpp: check--split-dimbeforesplitPlacementErroruses it (nwas read as an M split and gave a misleading placement error).SplitPlacement.hpp: newsplitPlacementFormatError; the--split-placementformat is checked on every run, the sharing rules only with--split-devices > 1.ClientWriter.py: same rule as the client.SplitDimmust be M or N; only the operand the split does not cut (B for M, A for N) and D can beShared, so a bad YAML fails when the config is written.GlobalParameters.pydocs updated.Stack note: #16104 has one small conflict in
main.cpp(its--split-aligncheck sits right after the--split-dimcheck that moves here); keep the--split-alignblock and drop the moved--split-dimlines. #15976 replays cleanly.Test Plan
tensilelite/tests/SplitPlacement_test.cpp(host-only gtest).tensilelite/tensilelite/Tests/unit/test_client_writer_split.py.client/main.cpp.Test Result
ClientWriter.py.main.cpp: syntax-only compile clean with amdclang++.Submission Checklist
Risk level
Low. Host-side option checks only. A placement that #16186 already rejects in the client is now also rejected in ClientWriter; invalid
--split-placementstrings are rejected without a split too.🤖 Generated with Claude Code