-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[AOTI XPU] Add XPUStreamGuard for XPU which is necessary for AOTI. #140819
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/140819
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit d6f5273 with merge base e2e67a0 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't introduce XPUStreamGuard
. Use c10::StreamGuard
instead.
Can you check the PR description? |
You can use c10::Stream to construct
No, |
ghstack-source-id: 0a57bda Pull Request resolved: pytorch/pytorch#140819
Stack from ghstack (oldest at bottom):
This PR created XPUStreamGuard instead of reuse StreamGuard for the following reason:
XPUStreamGuard
/CudaStreamGuard
set the guarded stream as current stream which is necessary in AOTI, butStreamGuard
not