-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[RELAND] Add UTs for accelerator device-agnostic runtime APIs #133572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/133572
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit ac1aefd with merge base cf538ef ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
self.assertEqual(torch.current_accelerator(), "xpu") | ||
|
||
@unittest.skipIf(not TEST_ACCELERATOR, "no avaliable accelerators detected") | ||
def test_generic_multi_device_behavior(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add device to the input parameter. So that you can check if the current device type is the same as the input device type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refine the UTs to be more general.
@pytorchbot revert -m 'Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore' -c nosignal test_accelerator.py::TestAccelerator::test_generic_stream_behavior GH job link HUD commit link |
@pytorchbot successfully started a revert job. Check the current status here. |
…138677)" This reverts commit 734bb01. Reverted #138677 on behalf of https://github.com/huydhn due to Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore ([comment](#133572 (comment)))
…#133572)" This reverts commit 2091194. Reverted #133572 on behalf of https://github.com/huydhn due to Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore ([comment](#133572 (comment)))
@guangyey your PR has been successfully reverted. |
* Revert "[RELAND] Add device-agnostic runtime Device/Stream C++ API (#138677)" This reverts commit 734bb01. Reverted #138677 on behalf of https://github.com/huydhn due to Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore ([comment](#133572 (comment))) * Revert "[RELAND] Add UTs for accelerator device-agnostic runtime APIs (#133572)" This reverts commit 2091194. Reverted #133572 on behalf of https://github.com/huydhn due to Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore ([comment](#133572 (comment))) --------- Co-authored-by: PyTorch MergeBot <pytorchmergebot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
…8677)" This reverts commit f84e533. Reverted pytorch#138677 on behalf of https://github.com/malfet due to Sorry for reverting your PR, but it segfaults on MacOS ([comment](pytorch#133572 (comment)))
…#133572)" This reverts commit 952514f. Reverted pytorch#133572 on behalf of https://github.com/malfet due to Sorry for reverting your PR, but it segfaults on MacOS ([comment](pytorch#133572 (comment)))
…h#133572) # Motivation This PR intends to add UTs for accelerator device-agnostic APIs. # Additional Context This PR is relanded. It is reverted because `torch.Event` doesn't support mps backend. We have fixed it in pytorch#142468. The previous commit is pytorch@952514f Pull Request resolved: pytorch#133572 Approved by: https://github.com/EikanWang, https://github.com/albanD ghstack dependencies: pytorch#142468
…38677) # Motivation This PR intends to add C++ accelerator device-agnostic APIs. # Additional Context This PR is relanded. It is reverted because `torch.Event` doesn't support mps backend. We have fixed it in pytorch#142468. The previous commit is pytorch@f84e533 Pull Request resolved: pytorch#138677 Approved by: https://github.com/albanD, https://github.com/EikanWang ghstack dependencies: pytorch#142468, pytorch#133572
…dx => index}` (pytorch#140542)" This reverts commit fb02b40. Reverted pytorch#140542 on behalf of https://github.com/huydhn due to Sorry for reverting your change, but I need to revert this in order to revert pytorch#133572 (comment) due to a conflict ([comment](pytorch#140542 (comment)))
…ytorch#138677)" This reverts commit 734bb01. Reverted pytorch#138677 on behalf of https://github.com/huydhn due to Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore ([comment](pytorch#133572 (comment)))
…pytorch#133572)" This reverts commit 2091194. Reverted pytorch#133572 on behalf of https://github.com/huydhn due to Sorry for reverting your change but the new test is still very flaky on MacOS even when it does not segfault anymore ([comment](pytorch#133572 (comment)))
…38677) # Motivation This PR intends to add C++ accelerator device-agnostic APIs. # Additional Context This PR is relanded. It is reverted because `torch.Event` doesn't support mps backend. We have fixed it in pytorch#142468. The previous commit is pytorch@f84e533 Pull Request resolved: pytorch#138677 Approved by: https://github.com/albanD, https://github.com/EikanWang ghstack dependencies: pytorch#143171, pytorch#133572
…h#133572) # Motivation This PR intends to add UTs for accelerator device-agnostic APIs. # Additional Context This PR is relanded. It is reverted because `torch.Event` doesn't support mps backend. We have fixed it in pytorch#142468. The previous commit is pytorch@952514f Pull Request resolved: pytorch#133572 Approved by: https://github.com/EikanWang, https://github.com/albanD ghstack dependencies: pytorch#143171
…38677) # Motivation This PR intends to add C++ accelerator device-agnostic APIs. # Additional Context This PR is relanded. It is reverted because `torch.Event` doesn't support mps backend. We have fixed it in pytorch#142468. The previous commit is pytorch@f84e533 Pull Request resolved: pytorch#138677 Approved by: https://github.com/albanD, https://github.com/EikanWang ghstack dependencies: pytorch#143171, pytorch#133572
Stack from ghstack (oldest at bottom):
Motivation
This PR intends to add UTs for accelerator device-agnostic APIs.
Additional Context
This PR is relanded. It is reverted because
torch.Event
doesn't support mps backend. We have fixed it in #142468. The previous commit is 952514fcc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10