[pytorch] Pin cmake<4.5 for Windows PyTorch wheel builds #10439
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 · 244 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.329
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10439"
general
weight: 0.35
ScottTodd
Motivation
Windows PyTorch wheel builds against torch
nightlyfail at configure since 12-02 (rockrel run 46797940847, all Python versions). PyTorch main'srequirements-build.txthas an unpinnedcmake>=3.27, which now resolves to 4.5.1:Technical Details
C/C++ use
clang-cl, while HIP uses GNU-styleclang. CMake 4.4 already documented this mix as unsupported, but only checked it when the first language was enabled. CMake 4.5 checks it again on every laterenable_language(), soLoadHIP.cmakenow fails.This PR adds
cmake<4.5to the existing Windows-onlyninja>=1.13.2override inbuild_prod_wheels.py. That step runs after the PyTorch requirements install, so it downgrades cmake for torch nightly and leaves release-branch pins alone. Linux is unaffected.Test Plan
nightly, ROCm10.3.0a20261202, gfx1151, py3.13, tests off: https://github.com/ROCm/TheRock/actions/runs/46934928846pre-commit runon the changed file.Test Result
pre-commit passes. Windows: pip downgraded cmake 4.5.1 to 4.4.5 before the build, configure passed, and the torch nightly wheel built. Linux built as before.
Submission Checklist
_Drafted with an AI coding assistant and reviewed by the author._