Skip to content

Commit 05dd88f

Browse files
authored
Merge branch 'pytorch:master' into master
2 parents cf34212 + b3bef8c commit 05dd88f

File tree

149 files changed

+5304
-3295
lines changed

Some content is hidden

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

149 files changed

+5304
-3295
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ parameters:
44
pytorch_stable_image:
55
type: string
66
# https://hub.docker.com/r/pytorch/pytorch/tags
7-
default: "pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime"
7+
default: "pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime"
88
pytorch_stable_image_devel:
99
type: string
1010
# https://hub.docker.com/r/pytorch/pytorch/tags
11-
default: "pytorch/pytorch:1.11.0-cuda11.3-cudnn8-devel"
11+
default: "pytorch/pytorch:1.12.1-cuda11.3-cudnn8-devel"
1212
workingdir:
1313
type: string
1414
default: "/tmp/ignite"

.github/workflows/gpu-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- "examples/**.py"
1010
- "requirements-dev.txt"
1111
- ".github/workflows/gpu-tests.yml"
12+
workflow_dispatch:
1213

1314
concurrency:
1415
# <workflow_name>-<branch_name>-<true || commit_sha (if branch is protected)>

.github/workflows/pytorch-version-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
schedule:
66
# Run at 00:00 UTC Every Day
77
- cron: "0 0 * * *"
8+
workflow_dispatch:
89

910
jobs:
1011
build:
@@ -14,7 +15,8 @@ jobs:
1415
fail-fast: false
1516
matrix:
1617
python-version: [3.7, 3.8, 3.9]
17-
pytorch-version: [1.9.1, 1.8.1, 1.7.1, 1.6.0, 1.5.1, 1.4.0, 1.3.1]
18+
pytorch-version:
19+
[1.11.0, 1.10.0, 1.9.1, 1.8.1, 1.7.1, 1.6.0, 1.5.1, 1.4.0, 1.3.1]
1820
exclude:
1921
- pytorch-version: 1.3.1
2022
python-version: 3.8
@@ -23,9 +25,9 @@ jobs:
2325
- pytorch-version: 1.4.0
2426
python-version: 3.9
2527
- pytorch-version: 1.5.1
26-
python-version: 3.9
28+
python-version: 3.9
2729
- pytorch-version: 1.6.0
28-
python-version: 3.9
30+
python-version: 3.9
2931
# disabling python 3.9 support with PyTorch 1.7.1 and 1.8.1, to stop repeated pytorch-version test fail.
3032
# https://github.com/pytorch/ignite/issues/2383
3133
- pytorch-version: 1.7.1
@@ -72,7 +74,7 @@ jobs:
7274
python setup.py install
7375
7476
- name: Install appropriate Pillow for PyTorch 1.3.1
75-
shell: bash -l {0}
77+
shell: bash -l {0}
7678
if: ${{ matrix.pytorch-version == '1.3.1' }}
7779
run: |
7880
pip install --upgrade 'Pillow<7'
@@ -86,7 +88,7 @@ jobs:
8688
- name: Run Tests
8789
shell: bash -l {0}
8890
run: |
89-
pytest tests -vvv
91+
bash tests/run_cpu_tests.sh "not test_time_profilers"
9092
9193
create-issue:
9294
runs-on: ubuntu-latest

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ jobs:
4949
pytorch-channel: pytorch
5050
python-version: 3.8
5151
skip-distrib-tests: 1
52-
exclude:
53-
# temporarily exclude stable on 3.10 as not yet released
54-
- pytorch-channel: pytorch
55-
python-version: "3.10"
5652

5753
steps:
5854
- uses: actions/checkout@v2
@@ -100,7 +96,7 @@ jobs:
10096
bash ./tests/run_code_style.sh lint
10197
10298
- name: Run Mypy
103-
if: ${{ matrix.os == 'ubuntu-latest' }}
99+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.pytorch-channel == 'pytorch-nightly'}}
104100
run: |
105101
bash ./tests/run_code_style.sh mypy
106102

docker/docker.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[DEFAULT]
2-
build_docker_image_pytorch_version = 1.11.0-cuda11.3-cudnn8
3-
build_docker_image_hvd_version = v0.24.2
4-
build_docker_image_msdp_version = v0.6.0
2+
build_docker_image_pytorch_version = 1.12.1-cuda11.3-cudnn8
3+
build_docker_image_hvd_version = v0.25.0
4+
build_docker_image_msdp_version = v0.7.2

docker/hvd/Dockerfile.hvd-apex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ FROM pytorch/pytorch:${PTH_VERSION}-devel AS apex-hvd-builder
99
ARG ARG_TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX 8.0"
1010
ENV TORCH_CUDA_ARCH_LIST=$ARG_TORCH_CUDA_ARCH_LIST
1111

12+
# Renew nvidia signing key
13+
# https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
14+
RUN apt-key del 7fa2af80 && \
15+
rm /etc/apt/sources.list.d/nvidia-ml.list && \
16+
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
17+
1218
# Install git
1319
RUN apt-get update && apt-get install -y --no-install-recommends git && \
1420
rm -rf /var/lib/apt/lists/*

docker/hvd/Dockerfile.hvd-base

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ FROM pytorch/pytorch:${PTH_VERSION}-devel as builder
77

88
ARG HVD_VERSION
99

10+
# Renew nvidia signing key
11+
# https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
12+
RUN apt-key del 7fa2af80 && \
13+
rm /etc/apt/sources.list.d/nvidia-ml.list && \
14+
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
15+
1016
# Build Horovod
1117
RUN apt-get update && apt-get install -y git && \
1218
git clone --recursive --depth 1 --branch ${HVD_VERSION} https://github.com/horovod/horovod.git /horovod && \

docker/main/Dockerfile.apex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ FROM pytorch/pytorch:${PTH_VERSION}-devel AS apex-builder
99
ARG ARG_TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX 8.0"
1010
ENV TORCH_CUDA_ARCH_LIST=$ARG_TORCH_CUDA_ARCH_LIST
1111

12+
# Renew nvidia signing key
13+
# https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
14+
RUN apt-key del 7fa2af80 && \
15+
rm /etc/apt/sources.list.d/nvidia-ml.list && \
16+
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
17+
1218
# Install git
1319
RUN apt-get update && apt-get install -y --no-install-recommends git && \
1420
rm -rf /var/lib/apt/lists/*

docker/msdp/Dockerfile.msdp-apex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ FROM pytorch/pytorch:${PTH_VERSION}-devel AS apex-msdp-builder
99
ARG ARG_TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX 8.0"
1010
ENV TORCH_CUDA_ARCH_LIST=$ARG_TORCH_CUDA_ARCH_LIST
1111

12+
# Renew nvidia signing key
13+
# https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
14+
RUN apt-key del 7fa2af80 && \
15+
rm /etc/apt/sources.list.d/nvidia-ml.list && \
16+
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
17+
1218
# Install git
1319
RUN apt-get update && apt-get install -y --no-install-recommends git && \
1420
rm -rf /var/lib/apt/lists/*
@@ -50,6 +56,12 @@ RUN cd /msdp && export CUDA_HOME=/usr/local/cuda && \
5056
pip install --no-cache-dir deepspeed-*.whl && \
5157
rm -fr /msdp
5258

59+
# Renew nvidia signing key
60+
# https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
61+
RUN apt-key del 7fa2af80 && \
62+
rm /etc/apt/sources.list.d/nvidia-ml.list && \
63+
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
64+
5365
# Install tzdata / git
5466
RUN apt-get update && \
5567
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \

docker/test_image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
def run_python_cmd(cmd):
2424

2525
try_except_cmd = f"""
26+
import warnings
27+
warnings.filterwarnings("ignore")
28+
2629
def main():
2730
{cmd}
2831

0 commit comments

Comments
 (0)