Skip to content

Commit 6010e9c

Browse files
committed
Merge branch 'master' of https://github.com/pytorch/pytorch into ci-all/bfloat16-cuda-tests
2 parents ccc0486 + c00d330 commit 6010e9c

File tree

4,289 files changed

+352973
-134358
lines changed

Some content is hidden

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

4,289 files changed

+352973
-134358
lines changed

.azure_pipelines/job_templates/prepare-build-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
curl -k https://s3.amazonaws.com/ossci-windows/sccache.exe --output .\tmp_bin\sccache.exe
4747
curl -k https://s3.amazonaws.com/ossci-windows/sccache-cl.exe --output .\tmp_bin\sccache-cl.exe
4848
copy .\tmp_bin\sccache.exe .\tmp_bin\nvcc.exe
49-
curl -kL https://github.com/peterjc123/randomtemp-rust/releases/download/v0.3/randomtemp.exe --output .\tmp_bin\randomtemp.exe
49+
curl -kL https://github.com/peterjc123/randomtemp-rust/releases/download/v0.4/randomtemp.exe --output .\tmp_bin\randomtemp.exe
5050
displayName: Install sccache and randomtemp
5151
condition: not(eq(variables.CUDA_VERSION, ''))
5252

.azure_pipelines/job_templates/set-environment-variables.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ steps:
120120
Write-Host "##vso[task.setvariable variable=CMAKE_LIBRARY_PATH;]$(Build.SourcesDirectory)\mkl\lib;$env:CMAKE_LIBRARY_PATH"
121121
Write-Host "##vso[task.setvariable variable=ADDITIONAL_PATH;]$(Build.SourcesDirectory)\tmp_bin"
122122
Write-Host "##vso[task.setvariable variable=SCCACHE_IDLE_TIMEOUT;]1500"
123-
Write-Host "##vso[task.setvariable variable=RANDOMTEMP_EXECUTABLE;]$(Build.SourcesDirectory)\tmp_bin\nvcc.exe"
124-
Write-Host "##vso[task.setvariable variable=CUDA_NVCC_EXECUTABLE;]$(Build.SourcesDirectory)\tmp_bin\randomtemp.exe"
125-
Write-Host "##vso[task.setvariable variable=RANDOMTEMP_BASEDIR;]$(Build.SourcesDirectory)\tmp_bin"
123+
Write-Host "##vso[task.setvariable variable=CMAKE_CUDA_COMPILER_LAUNCHER;]$(Build.SourcesDirectory)/tmp_bin/randomtemp.exe;$(Build.SourcesDirectory)/tmp_bin/sccache.exe"
126124
displayName: Set MKL, sccache and randomtemp environment variables
127125
128126
# View current environment variables

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build --copt=--std=c++14
22
build --copt=-I.
33
build --copt=-isystem --copt bazel-out/k8-fastbuild/bin
4+
build --experimental_ui_max_stdouterr_bytes=2048576
45

56
# Configuration to disable tty features for environments like CI
67
build:no-tty --curses no
@@ -11,3 +12,8 @@ build:no-tty --show_progress_rate_limit 10
1112
build:gpu --define=cuda=true
1213
# define a separate build folder for faster switching between configs
1314
build:gpu --platform_suffix=-gpu
15+
# rules_cuda configuration
16+
build:gpu --@rules_cuda//cuda:enable_cuda
17+
build:gpu --@rules_cuda//cuda:cuda_targets=sm_52
18+
build:gpu --@rules_cuda//cuda:compiler=nvcc
19+
build:gpu --repo_env=CUDA_PATH=/usr/local/cuda

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.0
1+
4.2.1

.circleci/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ All linux builds occur in docker images. The docker images are
343343
* Has ALL CUDA versions installed. The script pytorch/builder/conda/switch_cuda_version.sh sets /usr/local/cuda to a symlink to e.g. /usr/local/cuda-10.0 to enable different CUDA builds
344344
* Also used for cpu builds
345345
* pytorch/manylinux-cuda90
346-
* pytorch/manylinux-cuda92
347346
* pytorch/manylinux-cuda100
348347
* Also used for cpu builds
349348

.circleci/cimodel/data/binary_build_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def get_processor_arch_name(gpu_version):
6363
],
6464
)),
6565
windows=(
66-
[v for v in dimensions.GPU_VERSIONS if v not in dimensions.ROCM_VERSION_LABELS],
66+
# Stop building Win+CU102, see https://github.com/pytorch/pytorch/issues/65648
67+
[v for v in dimensions.GPU_VERSIONS if v not in dimensions.ROCM_VERSION_LABELS and v != "cuda102"],
6768
OrderedDict(
6869
wheel=dimensions.STANDARD_PYTHON_VERSIONS,
6970
conda=dimensions.STANDARD_PYTHON_VERSIONS,

.circleci/cimodel/data/binary_build_definitions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,17 @@ def gen_upload_job(self, phase, requires_dependency):
124124
Output looks similar to:
125125
126126
- binary_upload:
127-
name: binary_linux_manywheel_3_7m_cu92_devtoolset7_nightly_upload
127+
name: binary_linux_manywheel_3_7m_cu113_devtoolset7_nightly_upload
128128
context: org-member
129-
requires: binary_linux_manywheel_3_7m_cu92_devtoolset7_nightly_test
129+
requires: binary_linux_manywheel_3_7m_cu113_devtoolset7_nightly_test
130130
filters:
131131
branches:
132132
only:
133133
- nightly
134134
tags:
135135
only: /v[0-9]+(\\.[0-9]+)*-rc[0-9]+/
136136
package_type: manywheel
137-
upload_subfolder: cu92
137+
upload_subfolder: cu113
138138
"""
139139
return {
140140
"binary_upload": OrderedDict({

.circleci/cimodel/data/dimensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
"102",
55
"111",
66
"113",
7+
"115",
78
]
89

910
ROCM_VERSIONS = [
10-
"4.0.1",
1111
"4.1",
1212
"4.2",
13+
"4.3.1",
1314
]
1415

1516
ROCM_VERSION_LABELS = ["rocm" + v for v in ROCM_VERSIONS]
1617

1718
GPU_VERSIONS = [None] + ["cuda" + v for v in CUDA_VERSIONS] + ROCM_VERSION_LABELS
1819

1920
STANDARD_PYTHON_VERSIONS = [
20-
"3.6",
2121
"3.7",
2222
"3.8",
2323
"3.9"

.circleci/cimodel/data/pytorch_build_data.py

Lines changed: 1 addition & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,7 @@
1-
from cimodel.lib.conf_tree import ConfigNode, X, XImportant
1+
from cimodel.lib.conf_tree import ConfigNode
22

33

44
CONFIG_TREE_DATA = [
5-
("xenial", [
6-
("gcc", [
7-
("5.4", [ # All this subtree rebases to master and then build
8-
("3.6", [
9-
("important", [X(True)]),
10-
("parallel_tbb", [X(True)]),
11-
("parallel_native", [X(True)]),
12-
("pure_torch", [X(True)]),
13-
]),
14-
]),
15-
# TODO: bring back libtorch test
16-
("7", [X("3.6")]),
17-
]),
18-
("clang", [
19-
("7", [
20-
("3.6", [
21-
("asan", [
22-
(True, [
23-
("shard_test", [XImportant(True)]),
24-
]),
25-
]),
26-
("onnx", [XImportant(True)]),
27-
]),
28-
]),
29-
]),
30-
("cuda", [
31-
("10.2", [
32-
("3.6", [
33-
("shard_test", [X(True)]),
34-
("slow_gradcheck", [
35-
# If you update this slow gradcheck, you should
36-
# also update docker_definitions.py to make sure
37-
# the docker image match the config used here
38-
(True, [
39-
('shard_test', [XImportant(True)]),
40-
]),
41-
]),
42-
# UNCOMMENT THE BELOW TO REENABLE LIBTORCH
43-
# ("libtorch", [
44-
# (True, [
45-
# ('build_only', [X(True)]),
46-
# ]),
47-
# ]),
48-
]),
49-
]),
50-
("11.1", [
51-
("3.8", [
52-
("shard_test", [XImportant(True)]),
53-
# UNCOMMENT THE BELOW TO REENABLE LIBTORCH
54-
# ("libtorch", [
55-
# (True, [
56-
# ('build_only', [X(True)]),
57-
# ]),
58-
# ]),
59-
]),
60-
]),
61-
]),
62-
]),
63-
("bionic", [
64-
("clang", [
65-
("9", [
66-
("3.6", [
67-
("noarch", [XImportant(True)]),
68-
]),
69-
]),
70-
("9", [
71-
("3.6", [
72-
("xla", [XImportant(True)]),
73-
("vulkan", [XImportant(True)]),
74-
]),
75-
]),
76-
]),
77-
("cuda", [
78-
("10.2", [
79-
("3.9", [
80-
("shard_test", [XImportant(True)]),
81-
]),
82-
]),
83-
]),
84-
("rocm", [
85-
("3.9", [
86-
("3.6", [
87-
('build_only', [XImportant(True)]),
88-
]),
89-
]),
90-
]),
91-
]),
925
]
936

947

@@ -169,7 +82,6 @@ def child_constructor(self):
16982
"build_only": BuildOnlyConfigNode,
17083
"shard_test": ShardTestConfigNode,
17184
"cuda_gcc_override": CudaGccOverrideConfigNode,
172-
"coverage": CoverageConfigNode,
17385
"pure_torch": PureTorchConfigNode,
17486
"slow_gradcheck": SlowGradcheckConfigNode,
17587
}
@@ -313,14 +225,6 @@ def child_constructor(self):
313225
return ImportantConfigNode
314226

315227

316-
class CoverageConfigNode(TreeConfigNode):
317-
def init2(self, node_name):
318-
self.props["is_coverage"] = node_name
319-
320-
def child_constructor(self):
321-
return ExperimentalFeatureConfigNode
322-
323-
324228
class ImportantConfigNode(TreeConfigNode):
325229
def modify_label(self, label):
326230
return "IMPORTANT=" + str(label)

.circleci/cimodel/data/pytorch_build_definitions.py

Lines changed: 2 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -178,43 +178,14 @@ def gen_workflow_job(self, phase):
178178
}
179179
}
180180

181-
# TODO Convert these to graph nodes
182-
def gen_dependent_configs(xenial_parent_config):
183-
184-
extra_parms = [
185-
(["multigpu"], "large"),
186-
(["nogpu", "NO_AVX2"], None),
187-
(["nogpu", "NO_AVX"], None),
188-
(["slow"], "medium"),
189-
]
190-
191-
configs = []
192-
for parms, gpu in extra_parms:
193-
194-
c = Conf(
195-
xenial_parent_config.distro,
196-
["py3"] + parms,
197-
pyver=xenial_parent_config.pyver,
198-
cuda_version=xenial_parent_config.cuda_version,
199-
restrict_phases=["test"],
200-
gpu_resource=gpu,
201-
parent_build=xenial_parent_config,
202-
is_important=False,
203-
)
204-
205-
configs.append(c)
206-
207-
return configs
208-
209-
210181
def gen_docs_configs(xenial_parent_config):
211182
configs = []
212183

213184
configs.append(
214185
HiddenConf(
215186
"pytorch_python_doc_build",
216187
parent_build=xenial_parent_config,
217-
filters=gen_filter_dict(branches_list=r"/.*/",
188+
filters=gen_filter_dict(branches_list=["master", "nightly"],
218189
tags_list=RC_PATTERN),
219190
)
220191
)
@@ -230,7 +201,7 @@ def gen_docs_configs(xenial_parent_config):
230201
HiddenConf(
231202
"pytorch_cpp_doc_build",
232203
parent_build=xenial_parent_config,
233-
filters=gen_filter_dict(branches_list=r"/.*/",
204+
filters=gen_filter_dict(branches_list=["master", "nightly"],
234205
tags_list=RC_PATTERN),
235206
)
236207
)
@@ -241,13 +212,6 @@ def gen_docs_configs(xenial_parent_config):
241212
branch="master",
242213
)
243214
)
244-
245-
configs.append(
246-
HiddenConf(
247-
"pytorch_doc_test",
248-
parent_build=xenial_parent_config
249-
)
250-
)
251215
return configs
252216

253217

@@ -275,7 +239,6 @@ def instantiate_configs(only_slow_gradcheck):
275239
compiler_version = fc.find_prop("compiler_version")
276240
is_xla = fc.find_prop("is_xla") or False
277241
is_asan = fc.find_prop("is_asan") or False
278-
is_coverage = fc.find_prop("is_coverage") or False
279242
is_noarch = fc.find_prop("is_noarch") or False
280243
is_onnx = fc.find_prop("is_onnx") or False
281244
is_pure_torch = fc.find_prop("is_pure_torch") or False
@@ -320,10 +283,6 @@ def instantiate_configs(only_slow_gradcheck):
320283
python_version = fc.find_prop("pyver")
321284
parms_list[0] = fc.find_prop("abbreviated_pyver")
322285

323-
if is_coverage:
324-
parms_list_ignored_for_docker_image.append("coverage")
325-
python_version = fc.find_prop("pyver")
326-
327286
if is_noarch:
328287
parms_list_ignored_for_docker_image.append("noarch")
329288

@@ -393,49 +352,6 @@ def instantiate_configs(only_slow_gradcheck):
393352
tags_list=RC_PATTERN)
394353
c.dependent_tests = gen_docs_configs(c)
395354

396-
if cuda_version == "10.2" and python_version == "3.6" and not is_libtorch and not is_slow_gradcheck:
397-
c.dependent_tests = gen_dependent_configs(c)
398-
399-
if (
400-
compiler_name == "gcc"
401-
and compiler_version == "5.4"
402-
and not is_libtorch
403-
and not is_vulkan
404-
and not is_pure_torch
405-
and parallel_backend is None
406-
):
407-
bc_breaking_check = Conf(
408-
"backward-compatibility-check",
409-
[],
410-
is_xla=False,
411-
restrict_phases=["test"],
412-
is_libtorch=False,
413-
is_important=True,
414-
parent_build=c,
415-
)
416-
c.dependent_tests.append(bc_breaking_check)
417-
418-
if (
419-
compiler_name != "clang"
420-
and not rocm_version
421-
and not is_libtorch
422-
and not is_vulkan
423-
and not is_pure_torch
424-
and not is_noarch
425-
and not is_slow_gradcheck
426-
and not only_slow_gradcheck
427-
):
428-
distributed_test = Conf(
429-
c.gen_build_name("") + "distributed",
430-
[],
431-
is_xla=False,
432-
restrict_phases=["test"],
433-
is_libtorch=False,
434-
is_important=True,
435-
parent_build=c,
436-
)
437-
c.dependent_tests.append(distributed_test)
438-
439355
config_list.append(c)
440356

441357
return config_list

0 commit comments

Comments
 (0)