fix(miopen): Fix MultiMarginLoss Windows p width (ALMIOPEN-3424) #16287
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 258 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
Real PR Conversation Timeline
1 comments
"Review active on #16287"
general
weight: 0.35
JonathanLichtnerAMD
JIRA ID : ALMIOPEN-3424
JIRA ID : ROCM-32541
Motivation
Windows x64 packs
longas four bytes, while the MultiMarginLoss kernel expects an eight-byteint64_t. The mismatch corruptspand the following margin and tensor-view arguments, causing incorrect results and HIP launch failures.Technical Details
Change
multimarginloss::InvokeParams::ptoint64_t, include<cstdint>directly, and add a MIOpen changelog entry. Both reduction and non-reduction launches already pass this field. The public API remainslong; its supported values 1 and 2 widen losslessly when stored.Risk Assessment
Risk Level: 🟢 Low — two files, limited to MultiMarginLoss invocation metadata and its release note.
Impacted Components
MIOpen MultiMarginLoss forward argument packing for FP32, FP16, and BF16.
Potential Side Effects
Windows argument packing changes to match the existing kernel signature. Linux already uses eight-byte
long. Kernel math, solver selection, workspace sizing, and public API signatures are unchanged.Mitigation Steps
Keep the existing numerical regression suite unchanged; it covers p=1/2, all reduction modes, and contiguous/strided tensors. Scope excludes the other portability audit findings.
Test Plan
Smoke/GPU_MultiMarginLoss_*GoogleTest suites provide numerical regression coverage; no duplicate tests were added.Test Result