Skip to content

Don't double dispatch on CUDA logical_not.#38275

Closed
gchanan wants to merge 10 commits intogh/gchanan/279/basefrom
gh/gchanan/279/head
Closed

Don't double dispatch on CUDA logical_not.#38275
gchanan wants to merge 10 commits intogh/gchanan/279/basefrom
gh/gchanan/279/head

Conversation

@gchanan
Copy link
Copy Markdown
Contributor

@gchanan gchanan commented May 11, 2020

Stack from ghstack:

This op doesn't need to be fast and the double dispatch is time consuming to compile.

Differential Revision: D21511832

This op doesn't need to be fast and the double dispatch is time consuming to compile.

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 11, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: 90bd012
Pull Request resolved: #38275
@gchanan gchanan changed the title Don't double dispatch on UnarySignKernels. Don't double dispatch on CUDA logical_not. May 11, 2020
@gchanan gchanan requested a review from mruberry May 11, 2020 21:59
@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented May 11, 2020

I think(?) this has the same behavior and the cases I tried have the same behavior, but it would be good to confirm.

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 11, 2020

💊 CI failures summary and remediations

As of commit 3c818a0 (more details on the Dr. CI page):



❄️ 2 failures tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_windows_vs2019_py36_cuda10.1_test2 (1/2)

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

AssertionError: 1 not less than or equal to 0 :
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_device_type.py", line 234, in instantiated_test 
    result = test(self, device_arg, dtype) 
  File "test_torch.py", line 6458, in test_logical_not_out 
    self.assertEqual(out_np, out.to('cpu')) 
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 1010, in assertEqual 
    allow_inf=allow_inf, exact_dtype=exact_dtype) 
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 913, in assertEqual 
    allow_inf=allow_inf, exact_dtype=exact_dtype) 
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 1020, in assertEqual 
    super().assertLessEqual(abs(x - y), atol, message) 
AssertionError: 1 not less than or equal to 0 :  
 
---------------------------------------------------------------------- 
Ran 5484 tests in 367.612s 
 
FAILED (failures=45, skipped=318) 
 
Generating XML reports... 
Generated XML report: test-reports\python-unittest\TEST-TestDevicePrecisionCUDA-20200514213619.xml 
Generated XML report: test-reports\python-unittest\TEST-TestTensorDeviceOpsCPU-20200514213619.xml 
Generated XML report: test-reports\python-unittest\TEST-TestTensorDeviceOpsCUDA-20200514213619.xml 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test (2/2)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun) ❄️

May 14 22:03:15 AssertionError: 1 not less than or equal to 0 :
May 14 22:03:15   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 234, in instantiated_test 
May 14 22:03:15     result = test(self, device_arg, dtype) 
May 14 22:03:15   File "test_torch.py", line 6458, in test_logical_not_out 
May 14 22:03:15     self.assertEqual(out_np, out.to('cpu')) 
May 14 22:03:15   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1010, in assertEqual 
May 14 22:03:15     allow_inf=allow_inf, exact_dtype=exact_dtype) 
May 14 22:03:15   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 913, in assertEqual 
May 14 22:03:15     allow_inf=allow_inf, exact_dtype=exact_dtype) 
May 14 22:03:15   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1020, in assertEqual 
May 14 22:03:15     super().assertLessEqual(abs(x - y), atol, message) 
May 14 22:03:15 AssertionError: 1 not less than or equal to 0 :  
May 14 22:03:15  
May 14 22:03:16 ---------------------------------------------------------------------- 
May 14 22:03:16 Ran 5484 tests in 429.714s 
May 14 22:03:16  
May 14 22:03:16 FAILED (failures=45, skipped=367) 
May 14 22:03:16  
May 14 22:03:16 Generating XML reports... 
May 14 22:03:16 Generated XML report: test-reports/dist-gloo/TEST-TestDevicePrecisionCUDA-20200514215604.xml 
May 14 22:03:16 Generated XML report: test-reports/dist-gloo/TEST-TestTensorDeviceOpsCPU-20200514215604.xml 
May 14 22:03:16 Generated XML report: test-reports/dist-gloo/TEST-TestTensorDeviceOpsCUDA-20200514215604.xml 

ci.pytorch.org: 1 failed


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 on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 57 times.

@mruberry
Copy link
Copy Markdown
Collaborator

The logical_not test

def test_logical_not(self, device):
is pretty milquetoast and doesn't use our latest @dtypes gadgetry or compare against NumPy. Want to take this opportunity to update it?

1 similar comment
@mruberry
Copy link
Copy Markdown
Collaborator

The logical_not test

def test_logical_not(self, device):
is pretty milquetoast and doesn't use our latest @dtypes gadgetry or compare against NumPy. Want to take this opportunity to update it?

Copy link
Copy Markdown
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

The logical_not test

def test_logical_not(self, device):
is pretty milquetoast and doesn't use our latest @dtypes gadgetry or compare against NumPy. Want to take this opportunity to update it?

This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 12, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: 1ee1335
Pull Request resolved: #38275
gchanan added 2 commits May 12, 2020 16:07
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 12, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: c76cf2f
Pull Request resolved: #38275
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 13, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: d23fa72
Pull Request resolved: #38275
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 13, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: db23f03
Pull Request resolved: #38275
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 14, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: 6f8e2a0
Pull Request resolved: #38275
This op doesn't need to be fast and the double dispatch is time consuming to compile.

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 14, 2020
This op doesn't need to be fast and the double dispatch is time consuming to compile.

ghstack-source-id: 444d176
Pull Request resolved: #38275
gchanan added a commit that referenced this pull request May 14, 2020
This takes the testing of #38275, but doesn't include the kernel changes which are still being worked out.

[ghstack-poisoned]
gchanan added a commit that referenced this pull request May 14, 2020
This takes the testing of #38275, but doesn't include the kernel changes which are still being worked out.

ghstack-source-id: 1c852db
Pull Request resolved: #38505
facebook-github-bot pushed a commit that referenced this pull request May 15, 2020
Summary:
Pull Request resolved: #38505

This takes the testing of #38275, but doesn't include the kernel changes which are still being worked out.

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D21580574

Pulled By: gchanan

fbshipit-source-id: f12317259cb7373989f6c9ad345b19aaac524851
@gchanan gchanan closed this May 15, 2020
@facebook-github-bot facebook-github-bot deleted the gh/gchanan/279/head branch June 15, 2020 14:15
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#38505

This takes the testing of pytorch#38275, but doesn't include the kernel changes which are still being worked out.

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D21580574

Pulled By: gchanan

fbshipit-source-id: f12317259cb7373989f6c9ad345b19aaac524851
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants