Skip to content

Commit 65c0bb4

Browse files
authored
Merge pull request #1160 from ROCmSoftwarePlatform/IFU-master-2023-01-23
IFU-master-2023-01-23
2 parents 8db2849 + fa91be6 commit 65c0bb4

File tree

2,529 files changed

+160514
-95782
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,529 files changed

+160514
-95782
lines changed

.circleci/config.yml

Lines changed: 2 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/docker/build.sh

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,13 @@ fi
7878
# CMake 3.18 is needed to support CUDA17 language variant
7979
CMAKE_VERSION=3.18.5
8080

81-
TRAVIS_DL_URL_PREFIX="https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64"
8281
_UCX_COMMIT=31e74cac7bee0ef66bef2af72e7d86d9c282e5ab
8382
_UCC_COMMIT=1c7a7127186e7836f73aafbd7697bbc274a77eee
8483

8584
# It's annoying to rename jobs every time you want to rewrite a
8685
# configuration, so we hardcode everything here rather than do it
8786
# from scratch
8887
case "$image" in
89-
pytorch-linux-bionic-cuda11.3-cudnn8-py3-clang9)
90-
CUDA_VERSION=11.3.0 # Deviating from major.minor to conform to nvidia's Docker image names
91-
CUDNN_VERSION=8
92-
TENSORRT_VERSION=8.0.1.6
93-
ANACONDA_PYTHON_VERSION=3.7
94-
CLANG_VERSION=9
95-
PROTOBUF=yes
96-
DB=yes
97-
VISION=yes
98-
KATEX=yes
99-
CONDA_CMAKE=yes
100-
;;
10188
pytorch-linux-bionic-cuda11.6-cudnn8-py3-gcc7)
10289
CUDA_VERSION=11.6.2
10390
CUDNN_VERSION=8
@@ -168,42 +155,24 @@ case "$image" in
168155
VISION=yes
169156
CONDA_CMAKE=yes
170157
;;
171-
pytorch-linux-bionic-cuda10.2-cudnn7-py3.7-clang9)
172-
CUDA_VERSION=10.2
173-
CUDNN_VERSION=7
174-
ANACONDA_PYTHON_VERSION=3.7
175-
CLANG_VERSION=9
176-
PROTOBUF=yes
177-
DB=yes
178-
VISION=yes
179-
CONDA_CMAKE=yes
180-
;;
181-
pytorch-linux-bionic-cuda10.2-cudnn7-py3.9-gcc7)
182-
CUDA_VERSION=10.2
183-
CUDNN_VERSION=7
184-
ANACONDA_PYTHON_VERSION=3.9
185-
GCC_VERSION=7
186-
PROTOBUF=yes
187-
DB=yes
188-
VISION=yes
189-
CONDA_CMAKE=yes
190-
;;
191-
pytorch-linux-focal-rocm5.1-py3.8)
158+
pytorch-linux-focal-rocm5.2-py3.8)
192159
ANACONDA_PYTHON_VERSION=3.8
193160
GCC_VERSION=9
194161
PROTOBUF=yes
195162
DB=yes
196163
VISION=yes
197-
ROCM_VERSION=5.1.1
164+
ROCM_VERSION=5.2
165+
NINJA_VERSION=1.9.0
198166
CONDA_CMAKE=yes
199167
;;
200-
pytorch-linux-focal-rocm5.2-py3.8)
168+
pytorch-linux-focal-rocm5.3-py3.8)
201169
ANACONDA_PYTHON_VERSION=3.8
202170
GCC_VERSION=9
203171
PROTOBUF=yes
204172
DB=yes
205173
VISION=yes
206-
ROCM_VERSION=5.2
174+
ROCM_VERSION=5.3
175+
NINJA_VERSION=1.9.0
207176
CONDA_CMAKE=yes
208177
;;
209178
pytorch-linux-focal-py3.7-gcc7)
@@ -271,12 +240,6 @@ case "$image" in
271240
;;
272241
esac
273242

274-
# Set Jenkins UID and GID if running Jenkins
275-
if [ -n "${JENKINS:-}" ]; then
276-
JENKINS_UID=$(id -u jenkins)
277-
JENKINS_GID=$(id -g jenkins)
278-
fi
279-
280243
tmp_tag=$(basename "$(mktemp -u)" | tr '[:upper:]' '[:lower:]')
281244

282245
#when using cudnn version 8 install it separately from cuda
@@ -299,17 +262,12 @@ fi
299262
docker build \
300263
--no-cache \
301264
--progress=plain \
302-
--build-arg "TRAVIS_DL_URL_PREFIX=${TRAVIS_DL_URL_PREFIX}" \
303265
--build-arg "BUILD_ENVIRONMENT=${image}" \
304266
--build-arg "PROTOBUF=${PROTOBUF:-}" \
305267
--build-arg "THRIFT=${THRIFT:-}" \
306268
--build-arg "LLVMDEV=${LLVMDEV:-}" \
307269
--build-arg "DB=${DB:-}" \
308270
--build-arg "VISION=${VISION:-}" \
309-
--build-arg "EC2=${EC2:-}" \
310-
--build-arg "JENKINS=${JENKINS:-}" \
311-
--build-arg "JENKINS_UID=${JENKINS_UID:-}" \
312-
--build-arg "JENKINS_GID=${JENKINS_GID:-}" \
313271
--build-arg "UBUNTU_VERSION=${UBUNTU_VERSION}" \
314272
--build-arg "CENTOS_VERSION=${CENTOS_VERSION}" \
315273
--build-arg "DEVTOOLSET_VERSION=${DEVTOOLSET_VERSION}" \

.circleci/docker/build_docker.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ if [[ -z "${GITHUB_ACTIONS}" ]]; then
3636
trap "docker logout ${registry}" EXIT
3737
fi
3838

39-
# export EC2=1
40-
# export JENKINS=1
41-
4239
# Try to pull the previous image (perhaps we can reuse some layers)
4340
# if [ -n "${last_tag}" ]; then
4441
# docker pull "${image}:${last_tag}" || true

.circleci/docker/centos-rocm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}
1111
# Install required packages to build Caffe2
1212

1313
# Install common dependencies (so that this step can be cached separately)
14-
ARG EC2
1514
COPY ./common/install_base.sh install_base.sh
1615
RUN bash ./install_base.sh && rm install_base.sh
1716

@@ -38,9 +37,10 @@ COPY ./common/install_user.sh install_user.sh
3837
RUN bash ./install_user.sh && rm install_user.sh
3938

4039
# Install conda and other packages (e.g., numpy, pytest)
41-
ENV PATH /opt/conda/bin:$PATH
4240
ARG ANACONDA_PYTHON_VERSION
4341
ARG CONDA_CMAKE
42+
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
43+
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
4444
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
4545
COPY ./common/install_conda.sh install_conda.sh
4646
RUN bash ./install_conda.sh && rm install_conda.sh

.circleci/docker/common/install_base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ esac
174174
# Install Valgrind separately since the apt-get version is too old.
175175
if [[ $ID == centos && $OS_VERSION == 7 ]]; then WGET_FLAG="--no-check-certificate" ; else WGET_FLAG=""; fi
176176
mkdir valgrind_build && cd valgrind_build
177-
VALGRIND_VERSION=3.16.1
177+
VALGRIND_VERSION=3.20.0
178178
wget https://ossci-linux.s3.amazonaws.com/valgrind-${VALGRIND_VERSION}.tar.bz2
179179
tar -xjf valgrind-${VALGRIND_VERSION}.tar.bz2
180180
cd valgrind-${VALGRIND_VERSION}

.circleci/docker/common/install_cmake.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ set -ex
55
[ -n "$CMAKE_VERSION" ]
66

77
# Remove system cmake install so it won't get used instead
8-
apt-get remove cmake -y
8+
ID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
9+
case "$ID" in
10+
ubuntu)
11+
apt-get remove cmake -y
12+
;;
13+
centos)
14+
yum remove cmake -y
15+
;;
16+
*)
17+
echo "Unable to determine OS..."
18+
exit 1
19+
;;
20+
esac
921

1022
# Turn 3.6.3 into v3.6
1123
path=$(echo "${CMAKE_VERSION}" | sed -e 's/\([0-9].[0-9]\+\).*/v\1/')

.circleci/docker/common/install_conda.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
6666
fi
6767

6868
# Install correct Python version
69-
as_jenkins conda install -y python="$ANACONDA_PYTHON_VERSION"
69+
as_jenkins conda create -n py_$ANACONDA_PYTHON_VERSION -y python="$ANACONDA_PYTHON_VERSION"
7070

7171
conda_install() {
7272
# Ensure that the install command don't upgrade/downgrade Python
7373
# This should be called as
7474
# conda_install pkg1 pkg2 ... [-c channel]
75-
as_jenkins conda install -q -y python="$ANACONDA_PYTHON_VERSION" $*
75+
as_jenkins conda install -q -n py_$ANACONDA_PYTHON_VERSION -y python="$ANACONDA_PYTHON_VERSION" $*
7676
}
7777

7878
pip_install() {
79-
as_jenkins pip install --progress-bar off $*
79+
as_jenkins conda run -n py_$ANACONDA_PYTHON_VERSION pip install --progress-bar off $*
8080
}
8181

8282
# Install PyTorch conda deps, as per https://github.com/pytorch/pytorch README
83-
CONDA_COMMON_DEPS="astunparse pyyaml mkl=2022.0.1 mkl-include=2022.0.1 setuptools cffi future six"
83+
CONDA_COMMON_DEPS="astunparse pyyaml mkl=2022.0.1 mkl-include=2022.0.1 setuptools six"
8484
if [ "$ANACONDA_PYTHON_VERSION" = "3.10" ]; then
8585
# Install llvm-8 as it is required to compile llvmlite-0.30.0 from source
8686
conda_install numpy=1.21.2 ${CONDA_COMMON_DEPS} llvmdev=8.0.0

.circleci/docker/common/install_rocm_magma.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ done
2323
# hipcc with openmp flag may cause isnan() on __device__ not to be found; depending on context, compiler may attempt to match with host definition
2424
sed -i 's/^FOPENMP/#FOPENMP/g' make.inc
2525
make -f make.gen.hipMAGMA -j $(nproc)
26-
LANG=C.UTF-8 make lib/libmagma.so -j $(nproc) MKLROOT=/opt/conda
27-
make testing/testing_dgemm -j $(nproc) MKLROOT=/opt/conda
26+
LANG=C.UTF-8 make lib/libmagma.so -j $(nproc) MKLROOT=/opt/conda/envs/py_$ANACONDA_PYTHON_VERSION
27+
make testing/testing_dgemm -j $(nproc) MKLROOT=/opt/conda/envs/py_$ANACONDA_PYTHON_VERSION
2828
popd
2929
mv magma /opt/rocm

.circleci/docker/requirements-ci.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ pytest-rerunfailures
179179
#Pinned versions:
180180
#test that import:
181181

182-
xdoctest==1.0.2
182+
xdoctest==1.1.0
183183
#Description: runs doctests in pytest
184-
#Pinned versions: 1.0.2
184+
#Pinned versions: 1.1.0
185185
#test that import:
186186

187187
pygments==2.12.0

.circleci/docker/ubuntu-cuda/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ARG CUDA_VERSION
1010
ENV DEBIAN_FRONTEND noninteractive
1111

1212
# Install common dependencies (so that this step can be cached separately)
13-
ARG EC2
1413
COPY ./common/install_base.sh install_base.sh
1514
RUN bash ./install_base.sh && rm install_base.sh
1615

@@ -24,8 +23,9 @@ COPY ./common/install_docs_reqs.sh install_docs_reqs.sh
2423
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
2524

2625
# Install conda and other packages (e.g., numpy, pytest)
27-
ENV PATH /opt/conda/bin:$PATH
2826
ARG ANACONDA_PYTHON_VERSION
27+
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
28+
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
2929
ARG CONDA_CMAKE
3030
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
3131
COPY ./common/install_conda.sh install_conda.sh

0 commit comments

Comments
 (0)