Skip to content

Commit 6cb0f44

Browse files
committed
Update base for Update on "Add tensor.{adjoint(),H,mT,mH} methods and properties"
This PR follows the discussion in #45063 (comment) Fixes #45063 cc ezyang anjali411 dylanbespalko mruberry @lezcano nikitaved rgommers pmeier asmeurer leofang @AnirudhDagar asi1024 emcastillo kmaehashi heitorschueroff Differential Revision: [D30730483](https://our.internmc.facebook.com/intern/diff/D30730483) [ghstack-poisoned]
2 parents b860b15 + c66847a commit 6cb0f44

File tree

1,026 files changed

+26425
-14328
lines changed

Some content is hidden

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

1,026 files changed

+26425
-14328
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

.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/pytorch_build_data.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@
1212
# TODO: bring back libtorch test
1313
("7", [X("3.6")]),
1414
]),
15-
("clang", [
16-
("7", [
17-
("3.6", [
18-
("asan", [
19-
(True, [
20-
("shard_test", [XImportant(True)]),
21-
]),
22-
]),
23-
("onnx", [XImportant(True)]),
24-
]),
25-
]),
26-
]),
2715
("cuda", [
2816
("10.2", [
2917
("3.6", [
@@ -52,7 +40,6 @@
5240
("9", [
5341
("3.6", [
5442
("xla", [XImportant(True)]),
55-
("vulkan", [XImportant(True)]),
5643
]),
5744
]),
5845
]),

.circleci/cimodel/data/pytorch_build_definitions.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -352,28 +352,6 @@ def instantiate_configs(only_slow_gradcheck):
352352
tags_list=RC_PATTERN)
353353
c.dependent_tests = gen_docs_configs(c)
354354

355-
if (
356-
compiler_name != "clang"
357-
and not rocm_version
358-
and not is_libtorch
359-
and not is_vulkan
360-
and not is_pure_torch
361-
and not is_noarch
362-
and not is_slow_gradcheck
363-
and not only_slow_gradcheck
364-
and not build_only
365-
):
366-
distributed_test = Conf(
367-
c.gen_build_name("") + "distributed",
368-
[],
369-
is_xla=False,
370-
restrict_phases=["test"],
371-
is_libtorch=False,
372-
is_important=True,
373-
parent_build=c,
374-
)
375-
c.dependent_tests.append(distributed_test)
376-
377355
config_list.append(c)
378356

379357
return config_list

.circleci/cimodel/data/simple/binary_smoketest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def gen_tree(self):
120120
),
121121
SmoketestJob(
122122
"binary_windows_build",
123-
["wheel", "3.7", "cu102"],
123+
["wheel", "3.7", "cu113"],
124124
None,
125-
"binary_windows_wheel_3_7_cu102_build",
125+
"binary_windows_wheel_3_7_cu113_build",
126126
is_master_only=True,
127127
),
128128

@@ -144,11 +144,11 @@ def gen_tree(self):
144144
),
145145
SmoketestJob(
146146
"binary_windows_test",
147-
["wheel", "3.7", "cu102"],
147+
["wheel", "3.7", "cu113"],
148148
None,
149-
"binary_windows_wheel_3_7_cu102_test",
149+
"binary_windows_wheel_3_7_cu113_test",
150150
is_master_only=True,
151-
requires=["binary_windows_wheel_3_7_cu102_build"],
151+
requires=["binary_windows_wheel_3_7_cu113_build"],
152152
extra_props={
153153
"executor": "windows-with-nvidia-gpu",
154154
},

.circleci/cimodel/data/simple/docker_definitions.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@
66

77
# TODO: make this generated from a matrix rather than just a static list
88
IMAGE_NAMES = [
9-
"pytorch-linux-bionic-cuda10.2-cudnn7-py3.9-gcc7",
10-
"pytorch-linux-bionic-py3.6-clang9",
11-
"pytorch-linux-bionic-cuda10.2-cudnn7-py3.6-clang9",
12-
"pytorch-linux-bionic-py3.8-gcc9",
13-
"pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7",
14-
"pytorch-linux-xenial-cuda11.1-cudnn8-py3-gcc7",
15-
"pytorch-linux-xenial-cuda11.3-cudnn8-py3-gcc7",
16-
"pytorch-linux-xenial-py3-clang5-android-ndk-r19c",
17-
"pytorch-linux-xenial-py3-clang5-asan",
18-
"pytorch-linux-xenial-py3-clang7-asan",
19-
"pytorch-linux-xenial-py3-clang7-onnx",
20-
"pytorch-linux-xenial-py3.8",
21-
"pytorch-linux-xenial-py3.6-clang7",
22-
"pytorch-linux-xenial-py3.6-gcc5.4", # this one is used in doc builds
23-
"pytorch-linux-xenial-py3.6-gcc7.2",
24-
"pytorch-linux-xenial-py3.6-gcc7",
259
"pytorch-linux-bionic-rocm4.1-py3.6",
2610
"pytorch-linux-bionic-rocm4.2-py3.6",
2711
"pytorch-linux-bionic-rocm4.3.1-py3.6",
@@ -32,10 +16,12 @@
3216
# pytorch_build_data.py
3317
SLOW_GRADCHECK_IMAGE_NAME = "pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7"
3418

35-
def get_workflow_jobs(only_slow_gradcheck=False):
19+
def get_workflow_jobs(images=IMAGE_NAMES, only_slow_gradcheck=False):
3620
"""Generates a list of docker image build definitions"""
3721
ret = []
38-
for image_name in IMAGE_NAMES:
22+
for image_name in images:
23+
if image_name.startswith('docker-'):
24+
image_name = image_name.lstrip('docker-')
3925
if only_slow_gradcheck and image_name is not SLOW_GRADCHECK_IMAGE_NAME:
4026
continue
4127

0 commit comments

Comments
 (0)