Skip to content

Commit fe7cc73

Browse files
authored
Merge pull request #1173 from ROCmSoftwarePlatform/master_ifu_temp
Master ifu temp
2 parents ee36ea0 + 2e64206 commit fe7cc73

File tree

2,508 files changed

+160004
-95694
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,508 files changed

+160004
-95694
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-rocm5.3-py3.8)
@@ -287,12 +256,6 @@ case "$image" in
287256
;;
288257
esac
289258

290-
# Set Jenkins UID and GID if running Jenkins
291-
if [ -n "${JENKINS:-}" ]; then
292-
JENKINS_UID=$(id -u jenkins)
293-
JENKINS_GID=$(id -g jenkins)
294-
fi
295-
296259
tmp_tag=$(basename "$(mktemp -u)" | tr '[:upper:]' '[:lower:]')
297260

298261
#when using cudnn version 8 install it separately from cuda
@@ -315,17 +278,12 @@ fi
315278
docker build \
316279
--no-cache \
317280
--progress=plain \
318-
--build-arg "TRAVIS_DL_URL_PREFIX=${TRAVIS_DL_URL_PREFIX}" \
319281
--build-arg "BUILD_ENVIRONMENT=${image}" \
320282
--build-arg "PROTOBUF=${PROTOBUF:-}" \
321283
--build-arg "THRIFT=${THRIFT:-}" \
322284
--build-arg "LLVMDEV=${LLVMDEV:-}" \
323285
--build-arg "DB=${DB:-}" \
324286
--build-arg "VISION=${VISION:-}" \
325-
--build-arg "EC2=${EC2:-}" \
326-
--build-arg "JENKINS=${JENKINS:-}" \
327-
--build-arg "JENKINS_UID=${JENKINS_UID:-}" \
328-
--build-arg "JENKINS_GID=${JENKINS_GID:-}" \
329287
--build-arg "UBUNTU_VERSION=${UBUNTU_VERSION}" \
330288
--build-arg "CENTOS_VERSION=${CENTOS_VERSION}" \
331289
--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

@@ -40,9 +39,10 @@ COPY ./common/install_user.sh install_user.sh
4039
RUN bash ./install_user.sh && rm install_user.sh
4140

4241
# Install conda and other packages (e.g., numpy, pytest)
43-
ENV PATH /opt/conda/bin:$PATH
4442
ARG ANACONDA_PYTHON_VERSION
4543
ARG CONDA_CMAKE
44+
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
45+
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
4646
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
4747
COPY ./common/install_conda.sh install_conda.sh
4848
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
@@ -175,7 +175,7 @@ esac
175175
# Install Valgrind separately since the apt-get version is too old.
176176
if [[ $ID == centos && $OS_VERSION == 7 ]]; then WGET_FLAG="--no-check-certificate" ; else WGET_FLAG=""; fi
177177
mkdir valgrind_build && cd valgrind_build
178-
VALGRIND_VERSION=3.16.1
178+
VALGRIND_VERSION=3.20.0
179179
wget https://ossci-linux.s3.amazonaws.com/valgrind-${VALGRIND_VERSION}.tar.bz2
180180
tar -xjf valgrind-${VALGRIND_VERSION}.tar.bz2
181181
cd valgrind-${VALGRIND_VERSION}

.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

.circleci/docker/ubuntu-rocm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ARG PYTORCH_ROCM_ARCH
1111
ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}
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

@@ -26,9 +25,10 @@ COPY ./common/install_user.sh install_user.sh
2625
RUN bash ./install_user.sh && rm install_user.sh
2726

2827
# Install conda and other packages (e.g., numpy, pytest)
29-
ENV PATH /opt/conda/bin:$PATH
3028
ARG ANACONDA_PYTHON_VERSION
3129
ARG CONDA_CMAKE
30+
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
31+
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
3232
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
3333
COPY ./common/install_conda.sh install_conda.sh
3434
RUN bash ./install_conda.sh && rm install_conda.sh

.circleci/docker/ubuntu/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ENV DEBIAN_FRONTEND noninteractive
99
ARG CLANG_VERSION
1010

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

@@ -35,9 +34,10 @@ COPY ./common/install_docs_reqs.sh install_docs_reqs.sh
3534
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
3635

3736
# Install conda and other packages (e.g., numpy, pytest)
38-
ENV PATH /opt/conda/bin:$PATH
3937
ARG ANACONDA_PYTHON_VERSION
4038
ARG CONDA_CMAKE
39+
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
40+
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
4141
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
4242
COPY ./common/install_conda.sh install_conda.sh
4343
RUN bash ./install_conda.sh && rm install_conda.sh

.circleci/generate_config_yml.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import cimodel.data.simple.mobile_definitions
1515
import cimodel.data.simple.nightly_ios
1616
import cimodel.data.simple.anaconda_prune_defintions
17-
import cimodel.data.simple.ios_definitions
1817
import cimodel.lib.miniutils as miniutils
1918
import cimodel.lib.miniyaml as miniyaml
2019

@@ -141,7 +140,6 @@ def gen_build_workflows_tree():
141140
cimodel.data.simple.mobile_definitions.get_workflow_jobs,
142141
cimodel.data.simple.nightly_ios.get_workflow_jobs,
143142
cimodel.data.simple.anaconda_prune_defintions.get_workflow_jobs,
144-
cimodel.data.simple.ios_definitions.get_workflow_jobs,
145143
]
146144
build_jobs = [f() for f in build_workflows_functions]
147145
build_jobs.extend(

.circleci/scripts/binary_checkout.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else
5656
echo "Can't tell what to checkout"
5757
exit 1
5858
fi
59-
retry git submodule update --init --recursive --jobs 0
59+
retry git submodule update --init --recursive
6060
echo "Using Pytorch from "
6161
git --no-pager log --max-count 1
6262
popd

.circleci/scripts/binary_install_miniconda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131

3232
conda_sh="$workdir/install_miniconda.sh"
3333
if [[ "$(uname)" == Darwin ]]; then
34-
curl --retry 3 --retry-all-errors -o "$conda_sh" https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
34+
curl --retry 3 --retry-all-errors -o "$conda_sh" https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-MacOSX-x86_64.sh
3535
else
3636
curl --retry 3 --retry-all-errors -o "$conda_sh" https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
3737
fi

.circleci/scripts/binary_ios_build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ PROJ_ROOT=/Users/distiller/project
88
export TCLLIBPATH="/usr/local/lib"
99

1010
# Install conda
11-
curl --retry 3 --retry-all-errors -o ~/conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
11+
curl --retry 3 -o ~/conda.sh https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-MacOSX-x86_64.sh
1212
chmod +x ~/conda.sh
1313
/bin/bash ~/conda.sh -b -p ~/anaconda
1414
export PATH="~/anaconda/bin:${PATH}"
1515
source ~/anaconda/bin/activate
1616

1717
# Install dependencies
18-
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi requests typing_extensions --yes
18+
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake requests typing_extensions --yes
1919
conda install -c conda-forge valgrind --yes
2020
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
2121

2222
# sync submodules
2323
cd ${PROJ_ROOT}
2424
git submodule sync
25-
git submodule update --init --recursive --jobs 0
25+
git submodule update --init --recursive
2626

2727
# run build script
2828
chmod a+x ${PROJ_ROOT}/scripts/build_ios.sh

.circleci/scripts/binary_ios_upload.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
cp ${PROJ_ROOT}/LICENSE ${ZIP_DIR}/
3434
# zip the library
3535
export DATE="$(date -u +%Y%m%d)"
36-
export IOS_NIGHTLY_BUILD_VERSION="1.14.0.${DATE}"
36+
export IOS_NIGHTLY_BUILD_VERSION="2.0.0.${DATE}"
3737
if [ "${BUILD_LITE_INTERPRETER}" == "1" ]; then
3838
# libtorch_lite_ios_nightly_1.11.0.20210810.zip
3939
ZIPFILE="libtorch_lite_ios_nightly_${IOS_NIGHTLY_BUILD_VERSION}.zip"
@@ -47,7 +47,7 @@ echo "${IOS_NIGHTLY_BUILD_VERSION}" > version.txt
4747
zip -r ${ZIPFILE} install src version.txt LICENSE
4848
# upload to aws
4949
# Install conda then 'conda install' awscli
50-
curl --retry 3 --retry-all-errors -o ~/conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
50+
curl --retry 3 -o ~/conda.sh https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-MacOSX-x86_64.sh
5151
chmod +x ~/conda.sh
5252
/bin/bash ~/conda.sh -b -p ~/anaconda
5353
export PATH="~/anaconda/bin:${PATH}"

0 commit comments

Comments
 (0)