-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[Reland] Enable XPUEvent elapsed_time function #140873
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/140873
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 82df208 with merge base 9e299b8 ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
|
"Unrelated failures, there is an issue to track it #141705" |
Merge startedYour change will be merged while ignoring the following 2 checks: xpu / linux-jammy-xpu-2025_0-py3.9 / test (default, 1, 4, linux.idc.xpu), trunk / win-vs2019-cpu-py3 / test (default, 1, 3, lf.windows.4xlarge.nonephemeral) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
# Motivation This PR intends to reland pytorch#134666 that has been reverted in pytorch#140872 We reverted it because I forgot to support `elapsed_time` for `XPUGuardImpl`, which resulted in `c10::Event` not supporting' elapsed_time' and blocking XPU CI. # Additional Context We split pytorch#134666 into two parts: one part, PR pytorch#140865, supports `elapsed_time` for `torch.Event` and another one, this PR, supports for `torch.xpu.elapsed_time`. Pull Request resolved: pytorch#140873 Approved by: https://github.com/gujinghui ghstack dependencies: pytorch#140865
Stack from ghstack (oldest at bottom):
Motivation
This PR intends to reland #134666 that has been reverted in #140872
We reverted it because I forgot to support
elapsed_timeforXPUGuardImpl, which resulted inc10::Eventnot supporting' elapsed_time' and blocking XPU CI.Additional Context
We split #134666 into two parts: one part, PR #140865, supports
elapsed_timefortorch.Eventand another one, this PR, supports fortorch.xpu.elapsed_time.cc @gujinghui @EikanWang @fengyuan14