Skip to content

Commit de542d1

Browse files
Merge pull request #1194 from ROCmSoftwarePlatform/IFU-master-2023-03-01
IFU-master-2023-03-01
2 parents 65c0bb4 + eea0f66 commit de542d1

File tree

2,950 files changed

+135221
-86887
lines changed

Some content is hidden

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

2,950 files changed

+135221
-86887
lines changed
File renamed without changes.

.jenkins/caffe2/common.sh renamed to .ci/caffe2/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828
2929
# /usr/local/caffe2 is where the cpp bits are installed to in cmake-only
3030
# builds. In +python builds the cpp tests are copied to /usr/local/caffe2 so
31-
# that the test code in .jenkins/test.sh is the same
31+
# that the test code in .ci/test.sh is the same
3232
INSTALL_PREFIX="/usr/local/caffe2"
3333
3434
mkdir -p "$gtest_reports_dir" || true
File renamed without changes.
File renamed without changes.
File renamed without changes.

.circleci/docker/android/build.gradle renamed to .ci/docker/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies {
5353
implementation 'androidx.appcompat:appcompat:1.0.0'
5454
implementation 'com.facebook.fbjni:fbjni-java-only:0.2.2'
5555
implementation 'com.google.code.findbugs:jsr305:3.0.1'
56-
implementation 'com.facebook.soloader:nativeloader:0.10.4'
56+
implementation 'com.facebook.soloader:nativeloader:0.10.5'
5757

5858
implementation 'junit:junit:' + rootProject.junitVersion
5959
implementation 'androidx.test:core:' + rootProject.coreVersion

.circleci/docker/build.sh renamed to .ci/docker/build.sh

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ if [[ "$image" == *cuda* && "$UBUNTU_VERSION" != "22.04" ]]; then
7373
DOCKERFILE="${OS}-cuda/Dockerfile"
7474
elif [[ "$image" == *rocm* ]]; then
7575
DOCKERFILE="${OS}-rocm/Dockerfile"
76+
elif [[ "$image" == *linter* ]]; then
77+
# Use a separate Dockerfile for linter to keep a small image size
78+
DOCKERFILE="linter/Dockerfile"
7679
fi
7780

7881
# CMake 3.18 is needed to support CUDA17 language variant
@@ -97,6 +100,7 @@ case "$image" in
97100
UCX_COMMIT=${_UCX_COMMIT}
98101
UCC_COMMIT=${_UCC_COMMIT}
99102
CONDA_CMAKE=yes
103+
TRITON=yes
100104
;;
101105
pytorch-linux-bionic-cuda11.7-cudnn8-py3-gcc7)
102106
CUDA_VERSION=11.7.0
@@ -110,17 +114,33 @@ case "$image" in
110114
UCX_COMMIT=${_UCX_COMMIT}
111115
UCC_COMMIT=${_UCC_COMMIT}
112116
CONDA_CMAKE=yes
117+
TRITON=yes
118+
;;
119+
pytorch-linux-bionic-cuda11.8-cudnn8-py3-gcc7)
120+
CUDA_VERSION=11.8.0
121+
CUDNN_VERSION=8
122+
ANACONDA_PYTHON_VERSION=3.10
123+
GCC_VERSION=7
124+
PROTOBUF=yes
125+
DB=yes
126+
VISION=yes
127+
KATEX=yes
128+
UCX_COMMIT=${_UCX_COMMIT}
129+
UCC_COMMIT=${_UCC_COMMIT}
130+
CONDA_CMAKE=yes
131+
TRITON=yes
113132
;;
114133
pytorch-linux-focal-py3-clang7-asan)
115-
ANACONDA_PYTHON_VERSION=3.7
134+
ANACONDA_PYTHON_VERSION=3.9
116135
CLANG_VERSION=7
117136
PROTOBUF=yes
118137
DB=yes
119138
VISION=yes
120139
CONDA_CMAKE=yes
140+
TRITON=yes
121141
;;
122142
pytorch-linux-focal-py3-clang10-onnx)
123-
ANACONDA_PYTHON_VERSION=3.7
143+
ANACONDA_PYTHON_VERSION=3.8
124144
CLANG_VERSION=10
125145
PROTOBUF=yes
126146
DB=yes
@@ -137,15 +157,27 @@ case "$image" in
137157
GRADLE_VERSION=6.8.3
138158
NINJA_VERSION=1.9.0
139159
;;
140-
pytorch-linux-bionic-py3.7-clang9)
141-
ANACONDA_PYTHON_VERSION=3.7
160+
pytorch-linux-bionic-py3.8-clang9)
161+
ANACONDA_PYTHON_VERSION=3.8
142162
CLANG_VERSION=9
143163
PROTOBUF=yes
144164
DB=yes
145165
VISION=yes
146166
VULKAN_SDK_VERSION=1.2.162.1
147167
SWIFTSHADER=yes
148168
CONDA_CMAKE=yes
169+
TRITON=yes
170+
;;
171+
pytorch-linux-bionic-py3.11-clang9)
172+
ANACONDA_PYTHON_VERSION=3.11
173+
CLANG_VERSION=9
174+
PROTOBUF=yes
175+
DB=yes
176+
VISION=yes
177+
VULKAN_SDK_VERSION=1.2.162.1
178+
SWIFTSHADER=yes
179+
CONDA_CMAKE=yes
180+
TRITON=yes
149181
;;
150182
pytorch-linux-bionic-py3.8-gcc9)
151183
ANACONDA_PYTHON_VERSION=3.8
@@ -154,35 +186,37 @@ case "$image" in
154186
DB=yes
155187
VISION=yes
156188
CONDA_CMAKE=yes
189+
TRITON=yes
157190
;;
158-
pytorch-linux-focal-rocm5.2-py3.8)
191+
pytorch-linux-focal-rocm-n-1-py3)
159192
ANACONDA_PYTHON_VERSION=3.8
160193
GCC_VERSION=9
161194
PROTOBUF=yes
162195
DB=yes
163196
VISION=yes
164-
ROCM_VERSION=5.2
197+
ROCM_VERSION=5.3
165198
NINJA_VERSION=1.9.0
166199
CONDA_CMAKE=yes
167200
;;
168-
pytorch-linux-focal-rocm5.3-py3.8)
201+
pytorch-linux-focal-rocm-n-py3)
169202
ANACONDA_PYTHON_VERSION=3.8
170203
GCC_VERSION=9
171204
PROTOBUF=yes
172205
DB=yes
173206
VISION=yes
174-
ROCM_VERSION=5.3
207+
ROCM_VERSION=5.4.2
175208
NINJA_VERSION=1.9.0
176209
CONDA_CMAKE=yes
177210
;;
178-
pytorch-linux-focal-py3.7-gcc7)
179-
ANACONDA_PYTHON_VERSION=3.7
211+
pytorch-linux-focal-py3.8-gcc7)
212+
ANACONDA_PYTHON_VERSION=3.8
180213
GCC_VERSION=7
181214
PROTOBUF=yes
182215
DB=yes
183216
VISION=yes
184217
KATEX=yes
185218
CONDA_CMAKE=yes
219+
TRITON=yes
186220
;;
187221
pytorch-linux-jammy-cuda11.6-cudnn8-py3.8-clang12)
188222
ANACONDA_PYTHON_VERSION=3.8
@@ -192,6 +226,7 @@ case "$image" in
192226
PROTOBUF=yes
193227
DB=yes
194228
VISION=yes
229+
TRITON=yes
195230
;;
196231
pytorch-linux-jammy-cuda11.7-cudnn8-py3.8-clang12)
197232
ANACONDA_PYTHON_VERSION=3.8
@@ -201,6 +236,24 @@ case "$image" in
201236
PROTOBUF=yes
202237
DB=yes
203238
VISION=yes
239+
TRITON=yes
240+
;;
241+
pytorch-linux-jammy-cuda11.8-cudnn8-py3.8-clang12)
242+
ANACONDA_PYTHON_VERSION=3.8
243+
CUDA_VERSION=11.8
244+
CUDNN_VERSION=8
245+
CLANG_VERSION=12
246+
PROTOBUF=yes
247+
DB=yes
248+
VISION=yes
249+
TRITON=yes
250+
;;
251+
pytorch-linux-focal-linter)
252+
# TODO: Use 3.9 here because of this issue https://github.com/python/mypy/issues/13627.
253+
# We will need to update mypy version eventually, but that's for another day. The task
254+
# would be to upgrade mypy to 1.0.0 with Python 3.11
255+
ANACONDA_PYTHON_VERSION=3.9
256+
CONDA_CMAKE=yes
204257
;;
205258
*)
206259
# Catch-all for builds that are not hardcoded.
@@ -292,6 +345,7 @@ docker build \
292345
--build-arg "UCX_COMMIT=${UCX_COMMIT}" \
293346
--build-arg "UCC_COMMIT=${UCC_COMMIT}" \
294347
--build-arg "CONDA_CMAKE=${CONDA_CMAKE}" \
348+
--build-arg "TRITON=${TRITON}" \
295349
-f $(dirname ${DOCKERFILE})/${DOCKERFILE_NAME} \
296350
-t "$tmp_tag" \
297351
"$@" \

.circleci/docker/build_docker.sh renamed to .ci/docker/build_docker.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ tag="${DOCKER_TAG}"
1818

1919
registry="308535385114.dkr.ecr.us-east-1.amazonaws.com"
2020
image="${registry}/pytorch/${IMAGE_NAME}"
21-
ghcr_image="ghcr.io/pytorch/ci-image"
2221

2322
login() {
2423
aws ecr get-authorization-token --region us-east-1 --output text --query 'authorizationData[].authorizationToken' |
@@ -52,13 +51,6 @@ if [ "${DOCKER_SKIP_PUSH:-true}" = "false" ]; then
5251
if ! docker manifest inspect "${image}:${tag}" >/dev/null 2>/dev/null; then
5352
docker push "${image}:${tag}"
5453
fi
55-
56-
if [ "${PUSH_GHCR_IMAGE:-}" = "true" ]; then
57-
# Push docker image to the ghcr.io
58-
echo $GHCR_PAT | docker login ghcr.io -u pytorch --password-stdin
59-
docker tag "${image}:${tag}" "${ghcr_image}:${IMAGE_NAME}-${tag}"
60-
docker push "${ghcr_image}:${IMAGE_NAME}-${tag}"
61-
fi
6254
fi
6355

6456
if [ -z "${DOCKER_SKIP_S3_UPLOAD:-}" ]; then

.circleci/docker/centos-rocm/Dockerfile renamed to .ci/docker/centos-rocm/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ RUN bash ./install_base.sh && rm install_base.sh
1717
# Update CentOS git version
1818
RUN yum -y remove git
1919
RUN yum -y remove git-*
20-
RUN yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.9-1.x86_64.rpm
20+
RUN yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.9-1.x86_64.rpm || \
21+
(yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo-1.9-1.x86_64.rpm && \
22+
sed -i "s/packages.endpoint/packages.endpointdev/" /etc/yum.repos.d/endpoint.repo)
2123
RUN yum install -y git
2224

2325
# Install devtoolset
@@ -43,8 +45,8 @@ ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
4345
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
4446
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
4547
COPY ./common/install_conda.sh install_conda.sh
46-
RUN bash ./install_conda.sh && rm install_conda.sh
47-
RUN rm /opt/conda/requirements-ci.txt
48+
COPY ./common/common_utils.sh common_utils.sh
49+
RUN bash ./install_conda.sh && rm install_conda.sh common_utils.sh /opt/conda/requirements-ci.txt
4850

4951
# (optional) Install protobuf for ONNX
5052
ARG PROTOBUF
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b8b470bc597c1c5bd03682c09fe3e6b7c53787fd

0 commit comments

Comments
 (0)