updated test cases to use MultithreadTestCase#108749
updated test cases to use MultithreadTestCase#108749SaumyaBhushan wants to merge 2 commits intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/108749
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 5 New FailuresAs of commit 586c12d with merge base fae9547 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Hi @zou3519 @rohan-varma @H-Huang Please review this PR |
wanchaol
left a comment
There was a problem hiding this comment.
Thanks for contributing! a few comments inlined.
| class DistMatrixOpsTest(DTensorOpTestBase): | ||
| @with_comms | ||
| def test_addmm(self): | ||
| device_mesh = DeviceMesh(self.device_type, list(range(self.world_size))) |
There was a problem hiding this comment.
can we also change the device_mesh init to use self.build_mesh, thanks!
| class DistTensorOpsTest(DTensorTestBase): | ||
| class DistTensorOpsTest(DTensorOpTestBase): | ||
| @with_comms | ||
| def test_aten_contiguous(self): |
There was a problem hiding this comment.
same here, let's use build_mesh instead.
|
|
||
| class DistMathOpsTest(DTensorTestBase): | ||
| class DistMathOpsTest(DTensorOpTestBase): | ||
| @with_comms |
There was a problem hiding this comment.
I don't think we need the with_comms wrapper when switching to OpTestBase, please fix those
|
|
||
| class DistMatrixOpsTest(DTensorTestBase): | ||
| class DistMatrixOpsTest(DTensorOpTestBase): | ||
| @with_comms |
There was a problem hiding this comment.
same, can remove with_comms
|
|
||
| class DistTensorOpsTest(DTensorTestBase): | ||
| class DistTensorOpsTest(DTensorOpTestBase): | ||
| @with_comms |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
This addresses reviews made for: #158538 #108749 It interchanged all the specific DevideMesh constructor calls with the API provided by the test cases, to improve abstraction Pull Request resolved: #158675 Approved by: https://github.com/wconstab
Fixes #108744