This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Repository navigation
[XPU] Improve include hygiene in the XPU PTI Kineto plugin - #1548
Merged
ryanzhang22 merged 2 commits intoSep 1, 2026
Merged
Conversation
Contributor
Author
|
@gujinghui Please review |
Contributor
Author
|
@pytorchbot label "ciflow/xpu" |
|
The ciflow label(s) ciflow/xpu will be added, but CI won't be triggered until the workflows are approved (scroll to the bottom of this page). Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
|
tsocha
approved these changes
Aug 26, 2026
Drop the duplicate <pti/pti_view.h> left behind in XpuptiActivityApi.h. Replace the libstdc++-internal <bits/std_abs.h> with <cstdlib> and qualify the call as std::abs so the plugin builds on MSVC and libc++. Include <iostream> where std::cerr is used instead of relying on a transitive include, and use quoted includes for libkineto headers in XpuptiScopeProfilerSession.h.
tsocha
approved these changes
Aug 27, 2026
gujinghui
approved these changes
Aug 28, 2026
PawelSwider2000
marked this pull request as ready for review
August 31, 2026 05:03
Contributor
Author
|
@ryanzhang22 @scotts Please review |
ryanzhang22
approved these changes
Aug 31, 2026
Contributor
|
@pytorchbot merge |
|
Mergebot is not configured for this repository. Please use the merge button provided by GitHub. |
Contributor
|
@ryanzhang22 please merge |
aostrowski-hbn
added a commit
to aostrowski-hbn/kineto_intel
that referenced
this pull request
Sep 2, 2026
Conflict came from the XPU plugin include-hygiene change (pytorch#1548), which regrouped the includes in XpuptiScopeProfilerApi.cpp. Keep main's layout (own header, project headers, sorted std, then third-party) and fold this branch's additions into it: <span> and <utility> join the std group, fmt/format.h the third-party group. Two follow-ups for the same convention: the std includes this branch added to XpuptiScopeProfilerConfig.cpp move ahead of the fmt block, and XpuptiScopeProfilerApi.h now includes pti/pti.h explicitly, since it declares selectDeviceHandles in terms of pti_device_handle_t and pytorch#1548 dropped the header that used to pull pti/pti.h in transitively.
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Sep 4, 2026
Includes the following commits: - [xpupti] Report the hardware engine per GPU op via PTI v2 records (pytorch/kineto#1555) 8b682ab - [Kineto] Reintroduce Windows timestamp fix in CUPTI test (pytorch/kineto#1556) 95fbe6f - [xpupti] Support more than 1 device in ptiMetricsScopeConfigure (pytorch/kineto#1479) 29a6d74 - [XPUPTI] Fix buffer lifetime and report processed-record stats with some minor improvements. (pytorch/kineto#1553) 33b47f8 - [XPU] Improve include hygiene in the XPU PTI Kineto plugin (pytorch/kineto#1548) 760cbb0 Pull Request resolved: #196015 Approved by: https://github.com/Skylion007
Sanskaaar1
pushed a commit
to Sanskaaar1/pytorch
that referenced
this pull request
Sep 8, 2026
Includes the following commits: - [xpupti] Report the hardware engine per GPU op via PTI v2 records (pytorch/kineto#1555) 8b682ab - [Kineto] Reintroduce Windows timestamp fix in CUPTI test (pytorch/kineto#1556) 95fbe6f - [xpupti] Support more than 1 device in ptiMetricsScopeConfigure (pytorch/kineto#1479) 29a6d74 - [XPUPTI] Fix buffer lifetime and report processed-record stats with some minor improvements. (pytorch/kineto#1553) 33b47f8 - [XPU] Improve include hygiene in the XPU PTI Kineto plugin (pytorch/kineto#1548) 760cbb0 Pull Request resolved: pytorch#196015 Approved by: https://github.com/Skylion007
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes the XPU PTI plugin headers and sources explicitly include the types, utilities, and PTI APIs they use.
The changes are make based on:
pytorch/tools/iwyu/run.sh- without applying suggestion regarding sycl.hpp includes