Skip to content

updated test cases to use MultithreadTestCase#108749

Closed
SaumyaBhushan wants to merge 2 commits intopytorch:mainfrom
SaumyaBhushan:MultithreadTestCase
Closed

updated test cases to use MultithreadTestCase#108749
SaumyaBhushan wants to merge 2 commits intopytorch:mainfrom
SaumyaBhushan:MultithreadTestCase

Conversation

@SaumyaBhushan
Copy link

workerB
Fixes #108744

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 7, 2023

🔗 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 SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 5 New Failures

As of commit 586c12d with merge base fae9547 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 7, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Sep 7, 2023
@zou3519 zou3519 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 8, 2023
@SaumyaBhushan
Copy link
Author

Hi @zou3519 @rohan-varma @H-Huang Please review this PR

Copy link
Collaborator

@wanchaol wanchaol left a comment

Choose a reason for hiding this comment

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

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)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

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):
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, let's use build_mesh instead.


class DistMathOpsTest(DTensorTestBase):
class DistMathOpsTest(DTensorOpTestBase):
@with_comms
Copy link
Collaborator

Choose a reason for hiding this comment

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

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

same, can remove with_comms


class DistTensorOpsTest(DTensorTestBase):
class DistTensorOpsTest(DTensorOpTestBase):
@with_comms
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2023

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Nov 7, 2023
@github-actions github-actions bot closed this Dec 7, 2023
pytorchmergebot pushed a commit that referenced this pull request Jul 22, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open source Stale topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

switch more test cases to use MultithreadTestCase

4 participants