Skip to content

Conversation

@egienvalue
Copy link
Contributor

@egienvalue egienvalue commented Apr 10, 2024

Stack from ghstack (oldest at bottom):

Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.

  • torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
  • Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.

Differential Revision: D55941611

Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.
- torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
- Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.

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

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Apr 10, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/123707

Note: Links to docs will display an error until the docs builds have been completed.

❌ 4 New Failures

As of commit 1f9a839 with merge base 3a7351b (image):

NEW FAILURES - The following jobs have failed:

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55941611

egienvalue added a commit that referenced this pull request Apr 10, 2024
Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.
- torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
- Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.

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

ghstack-source-id: 221905285
Pull Request resolved: #123707
Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.
- torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
- Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.

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

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

This pull request was exported from Phabricator. Differential Revision: D55941611

egienvalue added a commit that referenced this pull request Apr 11, 2024
Pull Request resolved: #123707

Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.
- torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
- Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.
ghstack-source-id: 221905285
@exported-using-ghexport

Differential Revision: [D55941611](https://our.internmc.facebook.com/intern/diff/D55941611/)
Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.
- torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
- Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.

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

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

This pull request was exported from Phabricator. Differential Revision: D55941611

egienvalue added a commit that referenced this pull request Apr 12, 2024
Pull Request resolved: #123707

Since we have device generic torch.Event/Stream now, it is safe to replace _StreamBase/_Eventbase with torch.Stream/Event.
- torch.cuda.Stream/torch.xpu/Stream won't need to inherit from _StreamBase
- Alias is created between _StreamBase/_EventBase and torch.Stream/Event, because the dynamo is using them to trace stream and event.
ghstack-source-id: 221905285
@exported-using-ghexport

Differential Revision: [D55941611](https://our.internmc.facebook.com/intern/diff/D55941611/)
@ezyang ezyang requested a review from albanD April 21, 2024 11:26
@github-actions
Copy link
Contributor

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 Jun 20, 2024
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Is this still needed? Or doesn't change much?

@egienvalue
Copy link
Contributor Author

Is this still needed? Or doesn't change much?

Oh, haven't got a chance to work on this. After we finish TorchRec side integration with torch.mtia.Stream, I will come back and finish this one. I will close it for now, will reopen it later.

@egienvalue egienvalue closed this Jun 20, 2024
@github-actions github-actions bot deleted the gh/egienvalue/7/head branch July 21, 2024 02:00
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.

4 participants