Skip to content

Commit 49dec2e

Browse files
authored
Upgrade build infra to use debian-12 and gcc-11 (#9631)
Similar to #5451
1 parent aba96d8 commit 49dec2e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

infra/ansible/config/apt.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ apt:
1515
- wget
1616
- clang-format
1717
- clang-{{ clang_version }}
18-
- gcc-10
19-
- g++-10
18+
- gcc-11
19+
- g++-11
2020
- lcov
2121
- less
2222

infra/ansible/config/env.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
release_env:
44
common:
55
# Force GCC because clang/bazel has issues.
6-
CC: gcc-10
7-
CXX: g++-10
6+
CC: gcc-11
7+
CXX: g++-11
88
# CC: "clang-{{ clang_version }}"
99
# CXX: "clang++-{{ clang_version }}"
1010
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/usr/local/lib"
@@ -20,8 +20,8 @@ build_env:
2020
# Set explicitly to 0 as setup.py defaults this flag to true if unset.
2121
BUILD_CPP_TESTS: "{{ build_cpp_tests }}"
2222
# Force GCC because clang/bazel has issues.
23-
CC: gcc-10
24-
CXX: g++-10
23+
CC: gcc-11
24+
CXX: g++-11
2525
PYTORCH_BUILD_NUMBER: 1
2626
TORCH_XLA_VERSION: "{{ package_version }}"
2727
PYTORCH_BUILD_VERSION: "{{ package_version }}"

infra/ansible/config/vars.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Used for fetching clang from the right repo, see apt.yaml.
2-
llvm_debian_repo: bullseye
2+
llvm_debian_repo: bookworm
33
clang_version: 17
44
# PyTorch and PyTorch/XLA wheel versions.
55
package_version: 2.9.0

infra/ansible/development.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# The built image contains all required pip and apt packages for building and
33
# running PyTorch and PyTorch/XLA. The image doesn't contain any source code.
44
ARG python_version=3.8
5-
ARG debian_version=bullseye
5+
ARG debian_version=bookworm
66

77
FROM python:${python_version}-${debian_version}
88

infra/ansible/e2e_tests.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG python_version=3.8
2-
ARG debian_version=bullseye
2+
ARG debian_version=bookworm
33

44
FROM python:${python_version}-${debian_version} AS build
55

0 commit comments

Comments
 (0)