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

Merged
merged 9 commits into from
May 15, 2025

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.

@ghpvnist ghpvnist force-pushed the sync branch 2 times, most recently from 06eff81 to a2cb810 Compare May 8, 2025 21:43
@ghpvnist ghpvnist requested a review from qihqi May 14, 2025 00:52
@ghpvnist ghpvnist self-assigned this May 14, 2025
@ghpvnist ghpvnist merged commit bbafe35 into pytorch:master May 15, 2025
51 of 52 checks passed
@ghpvnist ghpvnist deleted the sync branch May 15, 2025 16:59
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.

3 participants