You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[tools] Update llvm version from 19.1.4 to 21.1.0 (pytorch#8359)
Bumps the custom clang-tidy / clang-format build from LLVM 19.1.4 to
21.1.0, and modernizes the Linux build image so it can still install
pytorch's build requirements.
### LLVM version bump (mirrors pytorch#5991, the 17.0.6 -> 19.1.4 change)
- `tools/clang-tidy-checks/setup.sh`: clone `llvmorg-21.1.0`, point
`apply_patches` at `21.x-patches`
- `.github/workflows/clang-tidy-linux.yml`: upload `version: 21.1.0`
- `.github/workflows/clang-tidy-macos.yml`: upload `version: 21.1.0`
(Intel + M1)
As with 19, `apply_patches` stays commented out and no `21.x-patches`
directory is added.
### Base image modernization
The first rebuild failed on the final Docker layer: Ubuntu 20.04 ships
Python 3.8, which can no longer satisfy pytorch's
`requirements-build.txt` (`setuptools>=77` dropped 3.8 support, so pip
caps at 75.3.4). This is drift in pytorch's requirements, not the LLVM
bump — the old image would fail the same way on a rebuild.
Rather than bootstrap a newer Python onto EOL Ubuntu 20.04, move to a
modern base (matching pytorch's move to CUDA 12):
- `Dockerfile.cilint-clang-tidy`: base
`nvidia/cuda:11.8.0-devel-ubuntu20.04` ->
`nvidia/cuda:12.4.1-devel-ubuntu22.04`, which provides Python 3.10
natively
- LLVM apt repo pointed at `jammy` instead of `focal`
Ubuntu 22.04 (glibc 2.35) is forward-compatible with
manylinux_2_24/_2_28/_2_34 wheels, so all `requirements-build.txt` deps
resolve to prebuilt wheels.
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments