Skip to content

Move XPUEvent to c10 #158336

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 17 commits into
base: gh/guangyey/171/base
Choose a base branch
from
Open

Move XPUEvent to c10 #158336

wants to merge 17 commits into from

Conversation

guangyey
Copy link
Collaborator

@guangyey guangyey commented Jul 15, 2025

Stack from ghstack (oldest at bottom):

Motivation

Move XPUEvent to c10/xpu to keep consistent with XPUStream, which is already in c10/xpu. The most important thing is that we will leverage XPUEvent in our caching allocator instead of a raw sycl event.

Copy link

pytorch-bot bot commented Jul 15, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit fe221f5 with merge base b1a6027 (image):
💚 Looks good so far! There are no failures yet. 💚

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

guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: caac5fa
Pull Request resolved: #158336
@@ -1,191 +1,3 @@
#pragma once
#include <ATen/xpu/XPUContext.h>

#include <optional>
Copy link
Collaborator Author

@guangyey guangyey Jul 15, 2025

Choose a reason for hiding this comment

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

Already included in <ATen/xpu/XPUContext.h>

@guangyey guangyey added release notes: xpu release notes category ciflow/xpu Run XPU CI tasks labels Jul 15, 2025
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: 230f86e
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: d693077
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: 9cc619c
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: 7db8e1b
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: c3da76b
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: 8265db9
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 15, 2025
ghstack-source-id: 31a4793
Pull Request resolved: #158336
guangyey added 8 commits July 15, 2025 15:07
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Jul 16, 2025
ghstack-source-id: f8d623f
Pull Request resolved: #158336
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Jul 17, 2025
ghstack-source-id: 9fa297d
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 17, 2025
ghstack-source-id: 9fa297d
Pull Request resolved: #158336
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Jul 18, 2025
ghstack-source-id: e2772c9
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 18, 2025
ghstack-source-id: e2772c9
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 18, 2025
ghstack-source-id: 4b6d9f0
Pull Request resolved: #158336
@guangyey guangyey requested a review from albanD July 18, 2025 10:26
guangyey added 2 commits July 18, 2025 14:16
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Jul 29, 2025
ghstack-source-id: 2e78a76
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Jul 29, 2025
ghstack-source-id: c52521c
Pull Request resolved: #158336
guangyey added 2 commits July 29, 2025 15:42
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Aug 8, 2025
ghstack-source-id: 8b08516
Pull Request resolved: #158336
guangyey added a commit that referenced this pull request Aug 8, 2025
ghstack-source-id: dcb3961
Pull Request resolved: #158336
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Aug 11, 2025
ghstack-source-id: 6f4a767
Pull Request resolved: #158336
[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/xpu Run XPU CI tasks open source release notes: xpu release notes category
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants