Skip to content

Commit d0cfd0f

Browse files
Merge branch 'pytorch:main' into temp-gha-runner-v2
2 parents e21d155 + 9d59b51 commit d0cfd0f

File tree

239 files changed

+1573
-5586
lines changed

Some content is hidden

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

239 files changed

+1573
-5586
lines changed

.ci/docker/build.sh

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,21 @@ if [[ "$image" == *xla* ]]; then
5050
exit 0
5151
fi
5252

53-
if [[ "$image" == *-focal* ]]; then
54-
UBUNTU_VERSION=20.04
55-
elif [[ "$image" == *-jammy* ]]; then
53+
if [[ "$image" == *-jammy* ]]; then
5654
UBUNTU_VERSION=22.04
5755
elif [[ "$image" == *ubuntu* ]]; then
5856
extract_version_from_image_name ubuntu UBUNTU_VERSION
59-
elif [[ "$image" == *centos* ]]; then
60-
extract_version_from_image_name centos CENTOS_VERSION
6157
fi
6258

6359
if [ -n "${UBUNTU_VERSION}" ]; then
6460
OS="ubuntu"
65-
elif [ -n "${CENTOS_VERSION}" ]; then
66-
OS="centos"
6761
else
6862
echo "Unable to derive operating system base..."
6963
exit 1
7064
fi
7165

7266
DOCKERFILE="${OS}/Dockerfile"
73-
# When using ubuntu - 22.04, start from Ubuntu docker image, instead of nvidia/cuda docker image.
74-
if [[ "$image" == *cuda* && "$UBUNTU_VERSION" != "22.04" ]]; then
75-
DOCKERFILE="${OS}-cuda/Dockerfile"
76-
elif [[ "$image" == *rocm* ]]; then
67+
if [[ "$image" == *rocm* ]]; then
7768
DOCKERFILE="${OS}-rocm/Dockerfile"
7869
elif [[ "$image" == *xpu* ]]; then
7970
DOCKERFILE="${OS}-xpu/Dockerfile"
@@ -98,7 +89,7 @@ tag=$(echo $image | awk -F':' '{print $2}')
9889
# configuration, so we hardcode everything here rather than do it
9990
# from scratch
10091
case "$tag" in
101-
pytorch-linux-focal-cuda12.6-cudnn9-py3-gcc11)
92+
pytorch-linux-jammy-cuda12.6-cudnn9-py3-gcc11)
10293
CUDA_VERSION=12.6.3
10394
CUDNN_VERSION=9
10495
ANACONDA_PYTHON_VERSION=3.10
@@ -145,7 +136,7 @@ case "$tag" in
145136
TRITON=yes
146137
INDUCTOR_BENCHMARKS=yes
147138
;;
148-
pytorch-linux-focal-cuda12.6-cudnn9-py3-gcc9)
139+
pytorch-linux-jammy-cuda12.6-cudnn9-py3-gcc9)
149140
CUDA_VERSION=12.6.3
150141
CUDNN_VERSION=9
151142
ANACONDA_PYTHON_VERSION=3.10
@@ -192,7 +183,7 @@ case "$tag" in
192183
TRITON=yes
193184
INDUCTOR_BENCHMARKS=yes
194185
;;
195-
pytorch-linux-focal-cuda12.8-cudnn9-py3-gcc9)
186+
pytorch-linux-jammy-cuda12.8-cudnn9-py3-gcc9)
196187
CUDA_VERSION=12.8.1
197188
CUDNN_VERSION=9
198189
ANACONDA_PYTHON_VERSION=3.10
@@ -203,25 +194,25 @@ case "$tag" in
203194
UCC_COMMIT=${_UCC_COMMIT}
204195
TRITON=yes
205196
;;
206-
pytorch-linux-focal-py3-clang10-onnx)
197+
pytorch-linux-jammy-py3-clang12-onnx)
207198
ANACONDA_PYTHON_VERSION=3.9
208-
CLANG_VERSION=10
199+
CLANG_VERSION=12
209200
VISION=yes
210201
ONNX=yes
211202
;;
212-
pytorch-linux-focal-py3.9-clang10)
203+
pytorch-linux-jammy-py3.9-clang12)
213204
ANACONDA_PYTHON_VERSION=3.9
214-
CLANG_VERSION=10
205+
CLANG_VERSION=12
215206
VISION=yes
216207
TRITON=yes
217208
;;
218-
pytorch-linux-focal-py3.11-clang10)
209+
pytorch-linux-jammy-py3.11-clang12)
219210
ANACONDA_PYTHON_VERSION=3.11
220-
CLANG_VERSION=10
211+
CLANG_VERSION=12
221212
VISION=yes
222213
TRITON=yes
223214
;;
224-
pytorch-linux-focal-py3.9-gcc9)
215+
pytorch-linux-jammy-py3.9-gcc9)
225216
ANACONDA_PYTHON_VERSION=3.9
226217
GCC_VERSION=9
227218
VISION=yes
@@ -327,7 +318,7 @@ case "$tag" in
327318
GCC_VERSION=11
328319
TRITON_CPU=yes
329320
;;
330-
pytorch-linux-focal-linter)
321+
pytorch-linux-jammy-linter)
331322
# TODO: Use 3.9 here because of this issue https://github.com/python/mypy/issues/13627.
332323
# We will need to update mypy version eventually, but that's for another day. The task
333324
# would be to upgrade mypy to 1.0.0 with Python 3.11
@@ -394,14 +385,6 @@ esac
394385

395386
tmp_tag=$(basename "$(mktemp -u)" | tr '[:upper:]' '[:lower:]')
396387

397-
#when using cudnn version 8 install it separately from cuda
398-
if [[ "$image" == *cuda* && ${OS} == "ubuntu" ]]; then
399-
IMAGE_NAME="nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION}"
400-
if [[ ${CUDNN_VERSION} == 9 ]]; then
401-
IMAGE_NAME="nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION}"
402-
fi
403-
fi
404-
405388
no_cache_flag=""
406389
progress_flag=""
407390
# Do not use cache and progress=plain when in CI
@@ -418,7 +401,6 @@ docker build \
418401
--build-arg "LLVMDEV=${LLVMDEV:-}" \
419402
--build-arg "VISION=${VISION:-}" \
420403
--build-arg "UBUNTU_VERSION=${UBUNTU_VERSION}" \
421-
--build-arg "CENTOS_VERSION=${CENTOS_VERSION}" \
422404
--build-arg "DEVTOOLSET_VERSION=${DEVTOOLSET_VERSION}" \
423405
--build-arg "GLIBC_VERSION=${GLIBC_VERSION}" \
424406
--build-arg "CLANG_VERSION=${CLANG_VERSION}" \

.ci/docker/common/install_cuda.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function install_118 {
5555
}
5656

5757
function install_126 {
58-
CUDNN_VERSION=9.5.1.17
58+
CUDNN_VERSION=9.10.1.4
5959
echo "Installing CUDA 12.6.3 and cuDNN ${CUDNN_VERSION} and NCCL and cuSparseLt-0.6.3"
6060
install_cuda 12.6.3 cuda_12.6.3_560.35.05_linux
6161

@@ -134,7 +134,7 @@ function prune_126 {
134134
}
135135

136136
function install_128 {
137-
CUDNN_VERSION=9.8.0.87
137+
CUDNN_VERSION=9.10.1.4
138138
echo "Installing CUDA 12.8.1 and cuDNN ${CUDNN_VERSION} and NCCL and cuSparseLt-0.6.3"
139139
# install CUDA 12.8.1 in the same container
140140
install_cuda 12.8.1 cuda_12.8.1_570.124.06_linux

.ci/docker/common/install_cudnn.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ if [[ -n "${CUDNN_VERSION}" ]]; then
55
mkdir tmp_cudnn
66
pushd tmp_cudnn
77
if [[ ${CUDA_VERSION:0:4} == "12.8" ]]; then
8-
CUDNN_NAME="cudnn-linux-x86_64-9.8.0.87_cuda12-archive"
8+
CUDNN_NAME="cudnn-linux-x86_64-9.10.1.4_cuda12-archive"
99
elif [[ ${CUDA_VERSION:0:4} == "12.6" ]]; then
10-
CUDNN_NAME="cudnn-linux-x86_64-9.5.1.17_cuda12-archive"
10+
CUDNN_NAME="cudnn-linux-x86_64-9.10.1.4_cuda12-archive"
1111
elif [[ ${CUDA_VERSION:0:2} == "11" ]]; then
1212
CUDNN_NAME="cudnn-linux-x86_64-9.1.0.70_cuda11-archive"
1313
else

.ci/docker/ubuntu-cuda/Dockerfile

Lines changed: 0 additions & 170 deletions
This file was deleted.

.ci/manywheel/build_rocm.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ ROCM_SO_FILES=(
9595
"libroctracer64.so"
9696
"libroctx64.so"
9797
"libhipblaslt.so"
98+
"libhipsparselt.so"
9899
"libhiprtc.so"
99100
)
100101

@@ -186,10 +187,11 @@ do
186187
OS_SO_FILES[${#OS_SO_FILES[@]}]=$file_name # Append lib to array
187188
done
188189

190+
ARCH=$(echo $PYTORCH_ROCM_ARCH | sed 's/;/|/g') # Replace ; seperated arch list to bar for grep
191+
189192
# rocBLAS library files
190193
ROCBLAS_LIB_SRC=$ROCM_HOME/lib/rocblas/library
191194
ROCBLAS_LIB_DST=lib/rocblas/library
192-
ARCH=$(echo $PYTORCH_ROCM_ARCH | sed 's/;/|/g') # Replace ; seperated arch list to bar for grep
193195
ARCH_SPECIFIC_FILES=$(ls $ROCBLAS_LIB_SRC | grep -E $ARCH)
194196
OTHER_FILES=$(ls $ROCBLAS_LIB_SRC | grep -v gfx)
195197
ROCBLAS_LIB_FILES=($ARCH_SPECIFIC_FILES $OTHER_FILES)
@@ -201,6 +203,13 @@ ARCH_SPECIFIC_FILES=$(ls $HIPBLASLT_LIB_SRC | grep -E $ARCH)
201203
OTHER_FILES=$(ls $HIPBLASLT_LIB_SRC | grep -v gfx)
202204
HIPBLASLT_LIB_FILES=($ARCH_SPECIFIC_FILES $OTHER_FILES)
203205

206+
# hipsparselt library files
207+
HIPSPARSELT_LIB_SRC=$ROCM_HOME/lib/hipsparselt/library
208+
HIPSPARSELT_LIB_DST=lib/hipsparselt/library
209+
ARCH_SPECIFIC_FILES=$(ls $HIPSPARSELT_LIB_SRC | grep -E $ARCH)
210+
OTHER_FILES=$(ls $HIPSPARSELT_LIB_SRC | grep -v gfx)
211+
HIPSPARSELT_LIB_FILES=($ARCH_SPECIFIC_FILES $OTHER_FILES)
212+
204213
# ROCm library files
205214
ROCM_SO_PATHS=()
206215
for lib in "${ROCM_SO_FILES[@]}"
@@ -234,12 +243,14 @@ DEPS_SONAME=(
234243
DEPS_AUX_SRCLIST=(
235244
"${ROCBLAS_LIB_FILES[@]/#/$ROCBLAS_LIB_SRC/}"
236245
"${HIPBLASLT_LIB_FILES[@]/#/$HIPBLASLT_LIB_SRC/}"
246+
"${HIPSPARSELT_LIB_FILES[@]/#/$HIPSPARSELT_LIB_SRC/}"
237247
"/opt/amdgpu/share/libdrm/amdgpu.ids"
238248
)
239249

240250
DEPS_AUX_DSTLIST=(
241251
"${ROCBLAS_LIB_FILES[@]/#/$ROCBLAS_LIB_DST/}"
242252
"${HIPBLASLT_LIB_FILES[@]/#/$HIPBLASLT_LIB_DST/}"
253+
"${HIPSPARSELT_LIB_FILES[@]/#/$HIPSPARSELT_LIB_DST/}"
243254
"share/libdrm/amdgpu.ids"
244255
)
245256

.ci/pytorch/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ test_executorch() {
15261526
test_linux_aarch64() {
15271527
python test/run_test.py --include test_modules test_mkldnn test_mkldnn_fusion test_openmp test_torch test_dynamic_shapes \
15281528
test_transformers test_multiprocessing test_numpy_interop test_autograd test_binary_ufuncs test_complex test_spectral_ops \
1529-
test_foreach test_reductions test_unary_ufuncs test_tensor_creation_ops test_ops \
1529+
test_foreach test_reductions test_unary_ufuncs test_tensor_creation_ops test_ops test_cpp_extensions_open_device_registration \
15301530
--shard "$SHARD_NUMBER" "$NUM_TEST_SHARDS" --verbose
15311531

15321532
# Dynamo tests

0 commit comments

Comments
 (0)