KEMBAR78
Add a test case for findDanglingImpls by alanwaketan · Pull Request #61104 · pytorch/pytorch · GitHub
Skip to content

Conversation

@alanwaketan
Copy link
Collaborator

@alanwaketan alanwaketan commented Jul 1, 2021

Stack from ghstack:

Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D29512520

Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

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

facebook-github-bot commented Jul 1, 2021

💊 CI failures summary and remediations

As of commit 070d915 (more details on the Dr. CI page and at hud.pytorch.org/pr/61104):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-scanned failure(s)

ci.pytorch.org: 1 failed


Preview docs built from this PR

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.

alanwaketan pushed a commit that referenced this pull request Jul 1, 2021
Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 7d30aa0
Pull Request resolved: #61104
@alanwaketan
Copy link
Collaborator Author

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

@alanwaketan alanwaketan requested a review from ezyang July 1, 2021 08:10
@alanwaketan
Copy link
Collaborator Author

This is a follow up for d5be67a.

@alanwaketan
Copy link
Collaborator Author

alanwaketan commented Jul 1, 2021

Oops, didn't know Windows uses '\' instead of '/'. (I guess I never need to deal with Windows in my previous job. 🤪) Will fix that.

But I'm a little bit surprised by the Linux/CUDA failure. Not sure why it has two dangling implementations.

Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
alanwaketan pushed a commit that referenced this pull request Jul 1, 2021
Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: f43b6b8
Pull Request resolved: #61104
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Very nice, thanks!

@alanwaketan
Copy link
Collaborator Author

Very nice, thanks!

Thanks for approving this patch, Ed! However, wondering if you have any insights about the following CI failures:

  1. pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test1.
  2. pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test2.

Not sure why there is one more dangling impl. @ezyang

@ezyang
Copy link
Contributor

ezyang commented Jul 6, 2021

well if you had printed the output of findDanglingImpls that would have given you a good clue right :)

@alanwaketan
Copy link
Collaborator Author

well if you had printed the output of findDanglingImpls that would have given you a good clue right :)

Thanks, Ed. That's right. It looks like the dangling implementation is unrelated to my patch. I just took a look at the full log. It indicates that there is one dangling implementation for the default test. Let me modify the default test case such that it always prints the info.

Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
alanwaketan pushed a commit that referenced this pull request Jul 6, 2021
Summary:
This patch added a new test case for findDanglingImpls. The test case introduces a C++ extension which has a dangling impl such that findDanglingImpls can find it and output its information.

Test Plan:
python test/test_dispatch.py TestDispatch.test_find_dangling_impls_ext

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: f191cd4
Pull Request resolved: #61104
@alanwaketan
Copy link
Collaborator Author

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 357c4d9.

@facebook-github-bot facebook-github-bot deleted the gh/alanwaketan/3/head branch July 11, 2021 14:16
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.

3 participants