This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Repository navigation
[xpupti] Guard v2 device records by PTI version - #1557
Merged
ryanzhang22 merged 1 commit intoSep 8, 2026
Merged
Conversation
The v2 kernel, memory-copy and memory-fill records appeared in PTI 0.18, so consuming them unconditionally broke the build against older PTI, which some XPU build images still ship. Fall back to the v1 records there; the hardware engine those v2 records carry is then not reported. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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. |
|
|
Contributor
Author
|
@EikanWang @gujinghui @guangyey @jgong5 please review. Failure is unrelated (CUDA-specific, was already visible in #1556). |
chuanqi129
approved these changes
Sep 7, 2026
chuanqi129
marked this pull request as ready for review
September 7, 2026 21:22
Contributor
Author
|
@ryanzhang22 @scotts please review |
ryanzhang22
approved these changes
Sep 8, 2026
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Sep 8, 2026
Includes the following commits: - [xpupti] Guard v2 device records by PTI version (pytorch/kineto#1557) 84e5ca9 This unbreaks `linux-jammy-xpu-n-1-py3.10 / build` and `win-vs2022-xpu-n-1-py3 / build`, red on main since #196015: the `n-1` images ship PTI 0.17, which does not carry the v2 device activity records that update started consuming. Pull Request resolved: #196325 Approved by: https://github.com/chuanqi129, https://github.com/ryanzhang22 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
BBBela
pushed a commit
to BBBela/pytorch
that referenced
this pull request
Sep 9, 2026
Includes the following commits: - [xpupti] Guard v2 device records by PTI version (pytorch/kineto#1557) 84e5ca9 This unbreaks `linux-jammy-xpu-n-1-py3.10 / build` and `win-vs2022-xpu-n-1-py3 / build`, red on main since pytorch#196015: the `n-1` images ship PTI 0.17, which does not carry the v2 device activity records that update started consuming. Pull Request resolved: pytorch#196325 Approved by: https://github.com/chuanqi129, https://github.com/ryanzhang22 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Why
The v2 device activity records (
pti_view_record_kernel_v2,pti_view_record_memory_copy_v2,pti_view_record_memory_fill_v2) only exist from PTI 0.18. #1555 started consuming themunconditionally, so the plugin no longer compiles against an older PTI. The XPU
n-1buildimages still ship PTI 0.17, so
linux-jammy-xpu-n-1-py3.10 / buildandwin-vs2022-xpu-n-1-py3 / buildon pytorch/pytorch main fail with'pti_view_record_kernel_v2' does not name a type.How
Pick the record version with the
PTI_VERSION_AT_LEASTmacro the plugin already provides, andfall back to the v1 records below PTI 0.18, where the hardware engine is then not reported. The
aliases move to namespace scope so the plugin tests build the same records the plugin consumes;
the tests asserting the engine metadata are compiled for PTI 0.18+ only.