Skip to content

Commit

Permalink
Merge pull request pytorch#1020 from csarofeen/21_7_26_dev_branch_update
Browse files Browse the repository at this point in the history
21 7 26 dev branch update
  • Loading branch information
csarofeen committed Jul 27, 2021
2 parents acf940e + 2a5d680 commit 9d26419
Show file tree
Hide file tree
Showing 2,501 changed files with 78,463 additions and 38,137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
is_official_build: ${{ parameters.is_official_build}}

# Sync and update PyTorch submodules
- bash: git submodule update --init --recursive
- bash: git submodule update --init --recursive --jobs 0
displayName: Update PyTorch submodules

# Build PyTorch and run unit tests - no packaging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
is_official_build: ${{ parameters.is_official_build}}

# Sync and update PyTorch submodules
- script: git submodule update --init --recursive
- script: git submodule update --init --recursive --jobs 0
displayName: Update PyTorch submodules

# Build PyTorch and run unit tests - no packaging
Expand Down
3 changes: 0 additions & 3 deletions .circleci/cimodel/data/binary_build_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ def __init__(self, parent, package_format, python_versions):
self.props["python_versions"] = python_versions
self.props["package_format"] = package_format

# XXX Disabling conda for 11.3 as there's currently no appropriate cudatoolkit available
if package_format == "conda":
self.props["gpu_versions"] = filter(lambda x: x != "cuda113", self.find_prop("gpu_versions"))

def get_children(self):
if self.find_prop("os_name") == "linux":
Expand Down
36 changes: 15 additions & 21 deletions .circleci/cimodel/data/pytorch_build_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,30 @@
("3.6", [
("shard_test", [X(True)]),
("slow_gradcheck", [
# If you update this slow gradcheck, you should
# also update docker_definitions.py to make sure
# the docker image match the config used here
(True, [
('shard_test', [XImportant(True)]),
]),
]),
("libtorch", [
(True, [
('build_only', [X(True)]),
]),
]),
# UNCOMMENT THE BELOW TO REENABLE LIBTORCH
# ("libtorch", [
# (True, [
# ('build_only', [X(True)]),
# ]),
# ]),
]),
]),
("11.1", [
("3.8", [
("shard_test", [XImportant(True)]),
("libtorch", [
(True, [
('build_only', [X(True)]),
]),
]),
# UNCOMMENT THE BELOW TO REENABLE LIBTORCH
# ("libtorch", [
# (True, [
# ('build_only', [X(True)]),
# ]),
# ]),
]),
]),
]),
Expand All @@ -80,17 +85,6 @@
]),
]),
]),
("gcc", [
("9", [
("3.8", [
("coverage", [
(True, [
("shard_test", [XImportant(True)]),
]),
]),
]),
]),
]),
("rocm", [
("3.9", [
("3.6", [
Expand Down
4 changes: 4 additions & 0 deletions .circleci/cimodel/data/pytorch_build_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Conf:
is_libtorch: bool = False
is_important: bool = False
parallel_backend: Optional[str] = None
build_only: bool = False

@staticmethod
def is_test_phase(phase):
Expand Down Expand Up @@ -112,6 +113,8 @@ def gen_workflow_params(self, phase):
parameters["resource_class"] = "xlarge"
if hasattr(self, 'filters'):
parameters['filters'] = self.filters
if self.build_only:
parameters['build_only'] = miniutils.quote(str(int(True)))
return parameters

def gen_workflow_job(self, phase):
Expand Down Expand Up @@ -369,6 +372,7 @@ def instantiate_configs(only_slow_gradcheck):
is_libtorch=is_libtorch,
is_important=is_important,
parallel_backend=parallel_backend,
build_only=build_only,
)

# run docs builds on "pytorch-linux-xenial-py3.6-gcc5.4". Docs builds
Expand Down
9 changes: 8 additions & 1 deletion .circleci/cimodel/data/simple/docker_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@
"pytorch-linux-bionic-rocm4.2-py3.6",
]

# This entry should be an element from the list above
# This should contain the image matching the "slow_gradcheck" entry in
# pytorch_build_data.py
SLOW_GRADCHECK_IMAGE_NAME = "pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7"

def get_workflow_jobs():
def get_workflow_jobs(only_slow_gradcheck=False):
"""Generates a list of docker image build definitions"""
ret = []
for image_name in IMAGE_NAMES:
if only_slow_gradcheck and image_name is not SLOW_GRADCHECK_IMAGE_NAME:
continue

parameters = OrderedDict({
"name": quote(f"docker-{image_name}"),
"image_name": quote(image_name),
Expand Down
1 change: 1 addition & 0 deletions .circleci/cimodel/data/windows_build_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def gen_tree(self):
props_dict = {
"build_environment": build_environment_string,
"python_version": miniutils.quote(python_version),
"vs_version": miniutils.quote("16.8.6"),
"vc_version": miniutils.quote(self.vscode_spec.dotted_version()),
"vc_year": miniutils.quote(str(self.vscode_spec.year)),
"vc_product": self.vscode_spec.get_product(),
Expand Down
Loading

0 comments on commit 9d26419

Please sign in to comment.