Skip to content

Conversation

@ysiraichi
Copy link
Collaborator

@ysiraichi ysiraichi commented Jul 22, 2021

Stack from ghstack:

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. all,
argmax, sum) into the composition of common patterns.

Differential Revision: D29847122

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jul 22, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 4dc4316 (more details on the Dr. CI page):



🕵️ 2 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_xla_linux_bionic_py3_6_clang9_build (1/2)

Step: "(Optional) Merge target branch" (full log | diagnosis details | 🔁 rerun)

Automatic merge failed; fix conflicts and then commit the result.
CONFLICT (add/add): Merge conflict in torch/csrc/autograd/profiler_utils.cpp
Auto-merging torch/csrc/autograd/profiler_utils.cpp
CONFLICT (add/add): Merge conflict in test/cpp/jit/test_misc.cpp
Auto-merging test/cpp/jit/test_misc.cpp
CONFLICT (add/add): Merge conflict in aten/src/ATen/native/quantized/cpu/qreduction.cpp
Auto-merging aten/src/ATen/native/quantized/cpu/qreduction.cpp
CONFLICT (add/add): Merge conflict in aten/src/ATen/native/native_functions.yaml
Auto-merging aten/src/ATen/native/native_functions.yaml
CONFLICT (add/add): Merge conflict in aten/src/ATen/native/ReduceOps.cpp
Auto-merging aten/src/ATen/native/ReduceOps.cpp
Automatic merge failed; fix conflicts and then commit the result.


Exited with code exit status 1

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_build (2/2)

Step: "(Optional) Merge target branch" (full log | diagnosis details | 🔁 rerun)

Automatic merge failed; fix conflicts and then commit the result.
HEAD is now at 4dc4316ce6 Update on "Port `prod` kernel to structured kernels."
+ git reset --hard 4dc4316ce64530ce7d7813a50970cf4af6dd4011
HEAD is now at 4dc4316ce6 Update on "Port `prod` kernel to structured kernels."
+ git merge --allow-unrelated-histories --no-edit --no-ff fb4ba9e6640a7f94658da45cc4c48e542849ff5f
CONFLICT (add/add): Merge conflict in aten/src/ATen/native/quantized/cpu/qreduction.cpp
Auto-merging aten/src/ATen/native/quantized/cpu/qreduction.cpp
CONFLICT (add/add): Merge conflict in aten/src/ATen/native/native_functions.yaml
Auto-merging aten/src/ATen/native/native_functions.yaml
CONFLICT (add/add): Merge conflict in aten/src/ATen/native/ReduceOps.cpp
Auto-merging aten/src/ATen/native/ReduceOps.cpp
Automatic merge failed; fix conflicts and then commit the result.


Exited with code exit status 1


1 failure not recognized by patterns:

Job Step Action
CircleCI pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test2 Set Up CI Environment After attach_workspace 🔁 rerun

❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See GitHub Actions build linux-bionic-py3.8-gcc9-coverage / test (default, 2, 2, linux.2xlarge) (1/1)

Step: "Test PyTorch" (full log | diagnosis details | 🔁 rerun) ❄️

2021-08-11T20:43:51.0353067Z RuntimeError: Proc...ated or timed out after 100.07439947128296 seconds
2021-08-11T20:43:51.0343824Z ======================================================================
2021-08-11T20:43:51.0344784Z ERROR [100.094s]: test_return_local_rrefs (__main__.TensorPipeRpcTestWithSpawn)
2021-08-11T20:43:51.0346563Z ----------------------------------------------------------------------
2021-08-11T20:43:51.0347187Z Traceback (most recent call last):
2021-08-11T20:43:51.0348445Z   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 418, in wrapper
2021-08-11T20:43:51.0349362Z     self._join_processes(fn)
2021-08-11T20:43:51.0350224Z   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 645, in _join_processes
2021-08-11T20:43:51.0350946Z     self._check_return_codes(elapsed_time)
2021-08-11T20:43:51.0351849Z   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 695, in _check_return_codes
2021-08-11T20:43:51.0352528Z     raise RuntimeError(
2021-08-11T20:43:51.0353067Z RuntimeError: Process 0 terminated or timed out after 100.07439947128296 seconds
2021-08-11T20:43:51.0353450Z 
2021-08-11T20:43:51.0353943Z ----------------------------------------------------------------------
2021-08-11T20:43:51.0354376Z Ran 369 tests in 757.239s
2021-08-11T20:43:51.0381459Z 
2021-08-11T20:43:51.0382078Z FAILED (errors=1, skipped=9)
2021-08-11T20:43:51.0382402Z 
2021-08-11T20:43:51.0383009Z Generating XML reports...
2021-08-11T20:43:51.0384906Z Generated XML report: test-reports/python-unittest/distributed.rpc.test_tensorpipe_agent/TEST-TensorPipeDdpComparisonTestWithSpawn-20210811203113.xml
2021-08-11T20:43:51.0387734Z Generated XML report: test-reports/python-unittest/distributed.rpc.test_tensorpipe_agent/TEST-TensorPipeDdpUnderDistAutogradTestWithSpawn-20210811203113.xml
2021-08-11T20:43:51.0520714Z Generated XML report: test-reports/python-unittest/distributed.rpc.test_tensorpipe_agent/TEST-TensorPipeDistAutogradTestWithSpawn-20210811203113.xml

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

ysiraichi added a commit that referenced this pull request Jul 22, 2021
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

ghstack-source-id: 52d7abb
Pull Request resolved: #62024
@ezyang
Copy link
Contributor

ezyang commented Jul 22, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ezyang
Copy link
Contributor

ezyang commented Jul 22, 2021

rebasing this stack; @ysiraichi you'll need to ghstack checkout after this

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Jul 22, 2021
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

ghstack-source-id: 289a1e4
Pull Request resolved: #62024
@ezyang
Copy link
Contributor

ezyang commented Jul 22, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
ysiraichi added a commit that referenced this pull request Jul 23, 2021
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

ghstack-source-id: f66373c
Pull Request resolved: #62024
@ezyang
Copy link
Contributor

ezyang commented Jul 25, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ysiraichi ysiraichi marked this pull request as ready for review July 25, 2021 04:38
@ysiraichi ysiraichi requested a review from ezyang as a code owner July 25, 2021 04:38
@ysiraichi ysiraichi requested a review from bdhirsh July 25, 2021 04:39
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
@ysiraichi
Copy link
Collaborator Author

Rebased.

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
ysiraichi added a commit that referenced this pull request Jul 27, 2021
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

ghstack-source-id: 98c6d92
Pull Request resolved: #62024
@ezyang
Copy link
Contributor

ezyang commented Jul 27, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

auto shape = meta::get_reduction_shape(self, {}, false);
Tensor result = at::empty(shape, self.options().dtype(dtype));
impl_func_prod(self, {}, false, dtype, result);
return result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks suspicious. How come we have to define prod here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that we can't call prod.dim_int since it expects only one dimension to reduce (prodreduces all of them). This differs from sum.dim_IntList, that expects many dimensions: int[1] (i.e. we can call sum.dim_IntList inside sum kernel)

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Jul 27, 2021
Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

ghstack-source-id: a865eb8
Pull Request resolved: #62024
@ezyang
Copy link
Contributor

ezyang commented Jul 27, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
@ezyang
Copy link
Contributor

ezyang commented Aug 4, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Differential Revision: [D29847122](https://our.internmc.facebook.com/intern/diff/D29847122)

[ghstack-poisoned]
@ezyang
Copy link
Contributor

ezyang commented Aug 11, 2021

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in 07bb6e4.

alanwaketan pushed a commit that referenced this pull request Aug 17, 2021
Summary:
Pull Request resolved: #62024

Tracking issue: #55070

In this PR, I also broke down the meta functions of other reduction kernels (e.g. `all`,
`argmax`, `sum`) into the composition of common patterns.

Test Plan: Imported from OSS

Reviewed By: ejguan

Differential Revision: D29847122

Pulled By: ezyang

fbshipit-source-id: a6680a6cf6e59bb46b8ffe7bf2a3a611d6e0fd14
@facebook-github-bot facebook-github-bot deleted the gh/ysiraichi/21/head branch August 17, 2021 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants