Skip to content

Replace implementation of xla_torch.sync() to xm.mark_step() #9086

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ghpvnist
Copy link
Collaborator

@ghpvnist ghpvnist commented May 3, 2025

PyTorch/XLA team recommends using xla_torch.sync() over xm.mark_step() for newer releases and expect the implementation to be the same, so sync simply calls xm.mark_step().

#8862

@ghpvnist ghpvnist force-pushed the sync branch 3 times, most recently from 7b082fe to 9c34518 Compare May 5, 2025 18:48
@ghpvnist ghpvnist marked this pull request as ready for review May 6, 2025 07:31
@ghpvnist ghpvnist requested a review from tengyifei May 6, 2025 07:31
Copy link
Collaborator

@tengyifei tengyifei left a comment

Choose a reason for hiding this comment

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

Can we fix the tests checking for debug messages instead? It's likely that they are too strict, hence became a change detector test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants