Skip to content

Commit 07fc24d

Browse files
Merge remote-tracking branch 'upstream/master' into pooling
2 parents d5cfe5a + 006cfeb commit 07fc24d

702 files changed

Lines changed: 12036 additions & 8095 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ parameters:
1111
run_binary_tests:
1212
type: boolean
1313
default: false
14+
run_build:
15+
type: boolean
16+
default: true
1417

1518
docker_config_defaults: &docker_config_defaults
1619
user: jenkins
@@ -9762,6 +9765,7 @@ workflows:
97629765
only:
97639766
- postnightly
97649767
executor: windows-with-nvidia-gpu
9768+
when: << pipeline.parameters.run_build >>
97659769
ecr_gc:
97669770
triggers:
97679771
- schedule:

.circleci/generate_config_yml.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ def gen_build_workflows_tree():
112112
"when": r"<< pipeline.parameters.run_binary_tests >>",
113113
"jobs": [f() for f in binary_build_functions],
114114
},
115-
"build": {"jobs": [f() for f in build_workflows_functions]},
115+
"build": {
116+
"when": r"<< pipeline.parameters.run_build >>",
117+
"jobs": [f() for f in build_workflows_functions]
118+
},
116119
}
117120
}
118121

.circleci/scripts/binary_linux_test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ if [[ "$PACKAGE_TYPE" == conda ]]; then
5151
else
5252
cu_ver="${DESIRED_CUDA:2:2}.${DESIRED_CUDA:4}"
5353
fi
54-
retry conda install \${EXTRA_CONDA_FLAGS} -yq -c nvidia -c pytorch "cudatoolkit=\${cu_ver}"
54+
(
55+
# For some reason conda likes to re-activate the conda environment when attempting this install
56+
# which means that a deactivate is run and some variables might not exist when that happens,
57+
# namely CONDA_MKL_INTERFACE_LAYER_BACKUP from libblas so let's just ignore unbound variables when
58+
# it comes to the conda installation commands
59+
set +u
60+
retry conda install \${EXTRA_CONDA_FLAGS} -yq -c nvidia -c pytorch "cudatoolkit=\${cu_ver}"
61+
)
5562
fi
5663
elif [[ "$PACKAGE_TYPE" != libtorch ]]; then
5764
pip install "\$pkg"

.circleci/scripts/windows_cuda_install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/bin/bash
22
set -eux -o pipefail
33

4-
if [[ "$CUDA_VERSION" =~ ^10.* ]]; then
4+
cuda_major_version=${CUDA_VERSION%.*}
5+
6+
if [[ "$cuda_major_version" == "10" ]]; then
57
cuda_installer_name="cuda_10.1.243_426.00_win10"
68
msbuild_project_dir="CUDAVisualStudioIntegration/extras/visual_studio_integration/MSBuildExtensions"
79
cuda_install_packages="nvcc_10.1 cuobjdump_10.1 nvprune_10.1 cupti_10.1 cublas_10.1 cublas_dev_10.1 cudart_10.1 cufft_10.1 cufft_dev_10.1 curand_10.1 curand_dev_10.1 cusolver_10.1 cusolver_dev_10.1 cusparse_10.1 cusparse_dev_10.1 nvgraph_10.1 nvgraph_dev_10.1 npp_10.1 npp_dev_10.1 nvrtc_10.1 nvrtc_dev_10.1 nvml_dev_10.1"
8-
elif [[ "$CUDA_VERSION" =~ ^11.* ]]; then
10+
elif [[ "$cuda_major_version" == "11" ]]; then
911
cuda_installer_name="cuda_11.1.0_456.43_win10"
1012
msbuild_project_dir="visual_studio_integration/CUDAVisualStudioIntegration/extras/visual_studio_integration/MSBuildExtensions"
1113
cuda_install_packages="nvcc_11.1 cuobjdump_11.1 nvprune_11.1 nvprof_11.1 cupti_11.1 cublas_11.1 cublas_dev_11.1 cudart_11.1 cufft_11.1 cufft_dev_11.1 curand_11.1 curand_dev_11.1 cusolver_11.1 cusolver_dev_11.1 cusparse_11.1 cusparse_dev_11.1 npp_11.1 npp_dev_11.1 nvrtc_11.1 nvrtc_dev_11.1 nvml_dev_11.1"
@@ -14,7 +16,7 @@ else
1416
exit 1
1517
fi
1618

17-
if [[ "$CUDA_VERSION" =~ ^11.* && "${JOB_EXECUTOR}" == "windows-with-nvidia-gpu" ]]; then
19+
if [[ "$cuda_major_version" == "11" && "${JOB_EXECUTOR}" == "windows-with-nvidia-gpu" ]]; then
1820
cuda_install_packages="${cuda_install_packages} Display.Driver"
1921
fi
2022

.circleci/scripts/windows_cudnn_install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/bash
22
set -eux -o pipefail
33

4-
if [[ "$CUDA_VERSION" =~ ^10.* ]]; then
4+
cuda_major_version=${CUDA_VERSION%.*}
5+
6+
if [[ "$cuda_major_version" == "10" ]]; then
57
cudnn_installer_name="cudnn-${CUDA_VERSION}-windows10-x64-v7.6.4.38"
6-
elif [[ "$CUDA_VERSION" =~ ^11.* ]]; then
8+
elif [[ "$cuda_major_version" == "11" ]]; then
79
cudnn_installer_name="cudnn-${CUDA_VERSION}-windows-x64-v8.0.5.39"
810
else
911
echo "CUDNN for CUDA_VERSION $CUDA_VERSION is not supported yet"

.circleci/verbatim-sources/header-section.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ parameters:
1111
run_binary_tests:
1212
type: boolean
1313
default: false
14+
run_build:
15+
type: boolean
16+
default: true
1417

1518
docker_config_defaults: &docker_config_defaults
1619
user: jenkins

.github/pytorch-circleci-labels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ labels_to_circle_params:
99
- release/.*
1010
tags:
1111
- v[0-9]+(\.[0-9]+)*-rc[0-9]+
12+
set_to_false:
13+
- run_build

.github/workflows/update_s3_htmls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
update-html:
1111
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'pytorch' }}
1213
strategy:
1314
matrix:
1415
prefix: ["whl", "whl/test", "whl/nightly"]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
.coverage
1212
coverage.xml
13+
.dmypy.json
1314
.gradle
1415
.hypothesis
1516
.mypy_cache

.jenkins/pytorch/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ it is very easy to run these tests yourself:
1010
``registry.pytorch.org/pytorch/pytorch-$BUILD_ENVIRONMENT:$DOCKER_VERSION``,
1111
where ``$BUILD_ENVIRONMENT`` is one of the build environments
1212
enumerated in
13-
[pytorch-dockerfiles](https://github.com/pietern/pytorch-dockerfiles/blob/master/build.sh)
13+
[pytorch-dockerfiles](https://github.com/pytorch/pytorch/blob/master/.circleci/docker/build.sh). The dockerfile used by jenkins can be found under the `.circle` [directory](https://github.com/pytorch/pytorch/blob/master/.circleci/docker)
1414

15-
2. Run ``docker -it -u jenkins $DOCKER_IMAGE``, clone PyTorch and
15+
2. Run ``docker run -it -u jenkins $DOCKER_IMAGE``, clone PyTorch and
1616
run one of the scripts in this directory.
1717

1818
The Docker images are designed so that any "reasonable" build commands
@@ -38,5 +38,5 @@ mechanisms we use:
3838
build scripts.
3939

4040
- We reroute well known paths like `/usr/bin/gcc` to alternate
41-
implementations with `update-alternatives, instead of setting
41+
implementations with `update-alternatives`, instead of setting
4242
`CC` and `CXX` in our implementations.

0 commit comments

Comments
 (0)