Skip to content

Commit a632efa

Browse files
committed
Merge remote-tracking branch 'upstream/main' into xccl
2 parents 68c6cf7 + 1dfa07e commit a632efa

File tree

1,339 files changed

+56804
-27139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,339 files changed

+56804
-27139
lines changed

.ci/docker/aotriton_version.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
0.6b
1+
0.7b
22
manylinux_2_17
33
rocm6.2
4-
7f07e8a1cb1f99627eb6d77f5c0e9295c775f3c7
5-
e4ab195d2bd19e939c675a13280c29714c6ef9f2cf420690da150fa0cac043b1
4+
9be04068c3c0857a4cfd17d7e39e71d0423ebac2
5+
3e9e1959d23b93d78a08fcc5f868125dc3854dece32fd9458be9ef4467982291

.ci/docker/build.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ case "$image" in
236236
TRITON=yes
237237
;;
238238
pytorch-linux-focal-py3-clang10-onnx)
239-
ANACONDA_PYTHON_VERSION=3.8
239+
ANACONDA_PYTHON_VERSION=3.9
240240
CLANG_VERSION=10
241241
PROTOBUF=yes
242242
DB=yes
@@ -245,7 +245,7 @@ case "$image" in
245245
ONNX=yes
246246
;;
247247
pytorch-linux-focal-py3-clang9-android-ndk-r21e)
248-
ANACONDA_PYTHON_VERSION=3.8
248+
ANACONDA_PYTHON_VERSION=3.9
249249
CLANG_VERSION=9
250250
LLVMDEV=yes
251251
PROTOBUF=yes
@@ -254,8 +254,8 @@ case "$image" in
254254
GRADLE_VERSION=6.8.3
255255
NINJA_VERSION=1.9.0
256256
;;
257-
pytorch-linux-focal-py3.8-clang10)
258-
ANACONDA_PYTHON_VERSION=3.8
257+
pytorch-linux-focal-py3.9-clang10)
258+
ANACONDA_PYTHON_VERSION=3.9
259259
CLANG_VERSION=10
260260
PROTOBUF=yes
261261
DB=yes
@@ -276,8 +276,8 @@ case "$image" in
276276
CONDA_CMAKE=yes
277277
TRITON=yes
278278
;;
279-
pytorch-linux-focal-py3.8-gcc9)
280-
ANACONDA_PYTHON_VERSION=3.8
279+
pytorch-linux-focal-py3.9-gcc9)
280+
ANACONDA_PYTHON_VERSION=3.9
281281
GCC_VERSION=9
282282
PROTOBUF=yes
283283
DB=yes
@@ -286,7 +286,7 @@ case "$image" in
286286
TRITON=yes
287287
;;
288288
pytorch-linux-focal-rocm-n-1-py3)
289-
ANACONDA_PYTHON_VERSION=3.8
289+
ANACONDA_PYTHON_VERSION=3.10
290290
GCC_VERSION=9
291291
PROTOBUF=yes
292292
DB=yes
@@ -297,7 +297,7 @@ case "$image" in
297297
TRITON=yes
298298
;;
299299
pytorch-linux-focal-rocm-n-py3)
300-
ANACONDA_PYTHON_VERSION=3.8
300+
ANACONDA_PYTHON_VERSION=3.10
301301
GCC_VERSION=9
302302
PROTOBUF=yes
303303
DB=yes
@@ -318,8 +318,8 @@ case "$image" in
318318
CONDA_CMAKE=yes
319319
TRITON=yes
320320
;;
321-
pytorch-linux-jammy-py3.8-gcc11-inductor-benchmarks)
322-
ANACONDA_PYTHON_VERSION=3.8
321+
pytorch-linux-jammy-py3.9-gcc11-inductor-benchmarks)
322+
ANACONDA_PYTHON_VERSION=3.9
323323
GCC_VERSION=11
324324
PROTOBUF=yes
325325
DB=yes
@@ -330,8 +330,8 @@ case "$image" in
330330
DOCS=yes
331331
INDUCTOR_BENCHMARKS=yes
332332
;;
333-
pytorch-linux-jammy-cuda11.8-cudnn9-py3.8-clang12)
334-
ANACONDA_PYTHON_VERSION=3.8
333+
pytorch-linux-jammy-cuda11.8-cudnn9-py3.9-clang12)
334+
ANACONDA_PYTHON_VERSION=3.9
335335
CUDA_VERSION=11.8
336336
CUDNN_VERSION=9
337337
CLANG_VERSION=12
@@ -355,8 +355,8 @@ case "$image" in
355355
CONDA_CMAKE=yes
356356
VISION=yes
357357
;;
358-
pytorch-linux-jammy-py3.8-gcc11)
359-
ANACONDA_PYTHON_VERSION=3.8
358+
pytorch-linux-jammy-py3.9-gcc11)
359+
ANACONDA_PYTHON_VERSION=3.9
360360
GCC_VERSION=11
361361
PROTOBUF=yes
362362
DB=yes

.ci/docker/centos-rocm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ ENV CMAKE_C_COMPILER cc
108108
ENV CMAKE_CXX_COMPILER c++
109109
COPY ./common/install_triton.sh install_triton.sh
110110
COPY ./common/common_utils.sh common_utils.sh
111-
COPY ci_commit_pins/triton-rocm.txt triton-rocm.txt
111+
COPY ci_commit_pins/triton.txt triton.txt
112112
COPY triton_version.txt triton_version.txt
113113
RUN if [ -n "${TRITON}" ]; then bash ./install_triton.sh; fi
114-
RUN rm install_triton.sh common_utils.sh triton-rocm.txt triton_version.txt
114+
RUN rm install_triton.sh common_utils.sh triton.txt triton_version.txt
115115

116116
# Install AOTriton (Early fail)
117117
COPY ./aotriton_version.txt aotriton_version.txt
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5e9bab8c5956249e75a0f187bf8075df97ca2555
1+
cd1c833b079adb324871dcbbe75b43d42ffc0ade

.ci/docker/ci_commit_pins/halide.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
340136fec6d3ebc73e7a19eba1663e9b0ba8ab2d
1+
461c12871f336fe6f57b55d6a297f13ef209161b

.ci/docker/ci_commit_pins/triton-rocm.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1b2f15840e0d70eec50d84c7a0575cb835524def
1+
91b14bf5593cf58a8541f3e6b9125600a867d4ef

.ci/docker/ci_commit_pins/triton.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dedb7bdf339a3546896d4820366ca562c586bfa0
1+
5fe38ffd73c2ac6ed6323b554205186696631c6f

.ci/docker/common/install_aotriton.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -ex
44

55
source "$(dirname "${BASH_SOURCE[0]}")/common_utils.sh"
66

7-
TARBALL='aotriton.tar.bz2'
7+
TARBALL='aotriton.tar.gz'
88
# This read command alwasy returns with exit code 1
99
read -d "\n" VER MANYLINUX ROCMBASE PINNED_COMMIT SHA256 < aotriton_version.txt || true
1010
ARCH=$(uname -m)
1111
AOTRITON_INSTALL_PREFIX="$1"
12-
AOTRITON_URL="https://github.com/ROCm/aotriton/releases/download/${VER}/aotriton-${VER}-${MANYLINUX}_${ARCH}-${ROCMBASE}-shared.tar.bz2"
12+
AOTRITON_URL="https://github.com/ROCm/aotriton/releases/download/${VER}/aotriton-${VER}-${MANYLINUX}_${ARCH}-${ROCMBASE}-shared.tar.gz"
1313

1414
cd "${AOTRITON_INSTALL_PREFIX}"
1515
# Must use -L to follow redirects

.ci/docker/common/install_conda.sh

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,22 @@ set -ex
55
# Optionally install conda
66
if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
77
BASE_URL="https://repo.anaconda.com/miniconda"
8+
CONDA_FILE="Miniconda3-latest-Linux-x86_64.sh"
9+
if [[ $(uname -m) == "aarch64" ]] || [[ "$BUILD_ENVIRONMENT" == *xpu* ]]; then
10+
BASE_URL="https://github.com/conda-forge/miniforge/releases/latest/download"
11+
CONDA_FILE="Miniforge3-Linux-$(uname -m).sh"
12+
fi
813

914
MAJOR_PYTHON_VERSION=$(echo "$ANACONDA_PYTHON_VERSION" | cut -d . -f 1)
1015
MINOR_PYTHON_VERSION=$(echo "$ANACONDA_PYTHON_VERSION" | cut -d . -f 2)
1116

12-
if [[ $(uname -m) == "aarch64" ]]; then
13-
BASE_URL="https://github.com/conda-forge/miniforge/releases/latest/download"
14-
case "$MAJOR_PYTHON_VERSION" in
15-
3)
16-
CONDA_FILE="Miniforge3-Linux-aarch64.sh"
17-
;;
18-
*)
19-
echo "Unsupported ANACONDA_PYTHON_VERSION: $ANACONDA_PYTHON_VERSION"
20-
exit 1
21-
;;
22-
esac
23-
else
2417
case "$MAJOR_PYTHON_VERSION" in
25-
3)
26-
CONDA_FILE="Miniconda3-latest-Linux-x86_64.sh"
27-
;;
18+
3);;
2819
*)
2920
echo "Unsupported ANACONDA_PYTHON_VERSION: $ANACONDA_PYTHON_VERSION"
3021
exit 1
3122
;;
3223
esac
33-
fi
3424

3525
mkdir -p /opt/conda
3626
chown jenkins:jenkins /opt/conda

.ci/docker/common/install_cpython.sh

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PYTHON_DOWNLOAD_GITHUB_BRANCH=https://github.com/python/cpython/archive/refs/hea
77
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
88

99
# Python versions to be installed in /opt/$VERSION_NO
10-
CPYTHON_VERSIONS=${CPYTHON_VERSIONS:-"3.8.1 3.9.0 3.10.1 3.11.0 3.12.0 3.13.0"}
10+
CPYTHON_VERSIONS=${CPYTHON_VERSIONS:-"3.8.1 3.9.0 3.10.1 3.11.0 3.12.0 3.13.0 3.13.0t"}
1111

1212
function check_var {
1313
if [ -z "$1" ]; then
@@ -22,6 +22,13 @@ function do_cpython_build {
2222
check_var $py_ver
2323
check_var $py_folder
2424
tar -xzf Python-$py_ver.tgz
25+
26+
local additional_flags=""
27+
if [ "$py_ver" == "3.13.0t" ]; then
28+
additional_flags=" --disable-gil"
29+
mv cpython-3.13/ cpython-3.13t/
30+
fi
31+
2532
pushd $py_folder
2633

2734
local prefix="/opt/_internal/cpython-${py_ver}"
@@ -37,8 +44,10 @@ function do_cpython_build {
3744
local openssl_flags="--with-openssl=${WITH_OPENSSL} --with-openssl-rpath=auto"
3845
fi
3946

47+
48+
4049
# -Wformat added for https://bugs.python.org/issue17547 on Python 2.6
41-
CFLAGS="-Wformat" ./configure --prefix=${prefix} ${openssl_flags} ${shared_flags} > /dev/null
50+
CFLAGS="-Wformat" ./configure --prefix=${prefix} ${openssl_flags} ${shared_flags} ${additional_flags} > /dev/null
4251

4352
make -j40 > /dev/null
4453
make install > /dev/null
@@ -58,7 +67,8 @@ function do_cpython_build {
5867
if [ -e ${prefix}/bin/pip3 ] && [ ! -e ${prefix}/bin/pip ]; then
5968
ln -s pip3 ${prefix}/bin/pip
6069
fi
61-
${prefix}/bin/pip install wheel==0.34.2
70+
# install setuptools since python 3.12 is required to use distutils
71+
${prefix}/bin/pip install wheel==0.34.2 setuptools==68.2.2
6272
local abi_tag=$(${prefix}/bin/python -c "from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag; print('{0}{1}-{2}'.format(get_abbr_impl(), get_impl_ver(), get_abi_tag()))")
6373
ln -s ${prefix} /opt/python/${abi_tag}
6474
}
@@ -68,7 +78,14 @@ function build_cpython {
6878
check_var $py_ver
6979
check_var $PYTHON_DOWNLOAD_URL
7080
local py_ver_folder=$py_ver
71-
if [ "$py_ver" = "3.13.0" ]; then
81+
82+
if [ "$py_ver" = "3.13.0t" ]; then
83+
PY_VER_SHORT="3.13"
84+
PYT_VER_SHORT="3.13t"
85+
check_var $PYTHON_DOWNLOAD_GITHUB_BRANCH
86+
wget $PYTHON_DOWNLOAD_GITHUB_BRANCH/$PY_VER_SHORT.tar.gz -O Python-$py_ver.tgz
87+
do_cpython_build $py_ver cpython-$PYT_VER_SHORT
88+
elif [ "$py_ver" = "3.13.0" ]; then
7289
PY_VER_SHORT="3.13"
7390
check_var $PYTHON_DOWNLOAD_GITHUB_BRANCH
7491
wget $PYTHON_DOWNLOAD_GITHUB_BRANCH/$PY_VER_SHORT.tar.gz -O Python-$py_ver.tgz

.ci/docker/common/install_cusparselt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
# cuSPARSELt license: https://docs.nvidia.com/cuda/cusparselt/license.html
66
mkdir tmp_cusparselt && cd tmp_cusparselt
77

8-
if [[ ${CUDA_VERSION:0:4} =~ ^12\.[2-4]$ ]]; then
8+
if [[ ${CUDA_VERSION:0:4} =~ ^12\.[2-6]$ ]]; then
99
arch_path='sbsa'
1010
export TARGETARCH=${TARGETARCH:-$(uname -m)}
1111
if [ ${TARGETARCH} = 'amd64' ] || [ "${TARGETARCH}" = 'x86_64' ]; then

.ci/docker/common/install_onnx.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip_install \
1515
flatbuffers==2.0 \
1616
mock==5.0.1 \
1717
ninja==1.10.2 \
18-
networkx==2.0 \
18+
networkx==2.5 \
1919
numpy==1.24.2
2020

2121
# ONNXRuntime should be installed before installing
@@ -30,10 +30,9 @@ pip_install \
3030

3131
pip_install coloredlogs packaging
3232

33-
pip_install onnxruntime==1.18
34-
pip_install onnx==1.16.0
35-
# pip_install "onnxscript@git+https://github.com/microsoft/onnxscript@3e869ef8ccf19b5ebd21c10d3e9c267c9a9fa729" --no-deps
36-
pip_install onnxscript==0.1.0.dev20240613 --no-deps
33+
pip_install onnxruntime==1.18.1
34+
pip_install onnx==1.16.2
35+
pip_install onnxscript==0.1.0.dev20240831 --no-deps
3736
# required by onnxscript
3837
pip_install ml_dtypes
3938

.ci/docker/common/install_triton.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ conda_reinstall() {
1212
as_jenkins conda install -q -n py_$ANACONDA_PYTHON_VERSION -y --force-reinstall $*
1313
}
1414

15-
if [ -n "${ROCM_VERSION}" ]; then
16-
TRITON_REPO="https://github.com/openai/triton"
17-
TRITON_TEXT_FILE="triton-rocm"
18-
elif [ -n "${XPU_VERSION}" ]; then
15+
if [ -n "${XPU_VERSION}" ]; then
1916
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
2017
TRITON_TEXT_FILE="triton-xpu"
2118
else

.ci/docker/requirements-ci.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ dill==0.3.7
3030
#Pinned versions: 0.3.7
3131
#test that import: dynamo/test_replay_record.py test_dataloader.py test_datapipe.py test_serialization.py
3232

33-
expecttest==0.1.6
33+
expecttest==0.2.1
3434
#Description: method for writing tests where test framework auto populates
3535
# the expected output based on previous runs
36+
#Pinned versions: 0.2.1
37+
#test that import:
38+
39+
fbscribelogger==0.1.6
40+
#Description: write to scribe from authenticated jobs on CI
3641
#Pinned versions: 0.1.6
3742
#test that import:
3843

@@ -85,7 +90,7 @@ librosa>=0.6.2 ; python_version < "3.11"
8590
#Pinned versions:
8691
#test that import:
8792

88-
mypy==1.10.0
93+
mypy==1.11.2
8994
# Pin MyPy version because new errors are likely to appear with each release
9095
#Description: linter
9196
#Pinned versions: 1.10.0
@@ -104,7 +109,7 @@ networkx==2.8.8
104109
#test that import: run_test.py, test_cpp_extensions_aot.py,test_determination.py
105110

106111
numba==0.49.0 ; python_version < "3.9"
107-
numba==0.54.1 ; python_version == "3.9"
112+
numba==0.55.2 ; python_version == "3.9"
108113
numba==0.55.2 ; python_version == "3.10"
109114
#Description: Just-In-Time Compiler for Numerical Functions
110115
#Pinned versions: 0.54.1, 0.49.0, <=0.49.1
@@ -332,3 +337,8 @@ onnxscript==0.1.0.dev20240817
332337
#Description: Required by mypy and test_public_bindings.py when checking torch.onnx._internal
333338
#Pinned versions:
334339
#test that import:
340+
341+
parameterized==0.8.1
342+
#Description: Parameterizes unittests, both the tests themselves and the entire testing class
343+
#Pinned versions:
344+
#test that import:

.ci/docker/triton_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0
1+
3.1.0

.ci/docker/ubuntu-rocm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ ARG TRITON
100100
# try to reach out to S3, which docker build runners don't have access
101101
COPY ./common/install_triton.sh install_triton.sh
102102
COPY ./common/common_utils.sh common_utils.sh
103-
COPY ci_commit_pins/triton-rocm.txt triton-rocm.txt
103+
COPY ci_commit_pins/triton.txt triton.txt
104104
COPY triton_version.txt triton_version.txt
105105
RUN if [ -n "${TRITON}" ]; then bash ./install_triton.sh; fi
106-
RUN rm install_triton.sh common_utils.sh triton-rocm.txt triton_version.txt
106+
RUN rm install_triton.sh common_utils.sh triton.txt triton_version.txt
107107

108108
# Install AOTriton
109109
COPY ./aotriton_version.txt aotriton_version.txt

.ci/docker/ubuntu-xpu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
3030
ARG ANACONDA_PYTHON_VERSION
3131
ARG CONDA_CMAKE
3232
ARG DOCS
33+
ARG BUILD_ENVIRONMENT
3334
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
3435
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
3536
ENV DOCS=$DOCS

.ci/pytorch/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,8 @@ else
285285
if [[ "$BUILD_ENVIRONMENT" != *rocm* &&
286286
"$BUILD_ENVIRONMENT" != *xla* ]]; then
287287
if [[ "$BUILD_ENVIRONMENT" != *py3.8* ]]; then
288-
# Install numpy-2.0 release candidate for builds
289-
# Which should be backward compatible with Numpy-1.X
290-
python -mpip install --pre numpy==2.0.0rc1
288+
# Install numpy-2.0.2 for builds which are backward compatible with 1.X
289+
python -mpip install --pre numpy==2.0.2
291290
fi
292291

293292
WERROR=1 python setup.py clean

0 commit comments

Comments
 (0)