Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

[xpupti] Remove support for old versions of PTI. Rework of PTI error handling. - #1405

Closed
tsocha wants to merge 6 commits into
pytorch:mainfrom
intel-staging:dev/tsocha/pti-version-cleaning
Closed

tsocha wants to merge 6 commits into
pytorch:mainfrom
intel-staging:dev/tsocha/pti-version-cleaning

Conversation

@tsocha

@tsocha tsocha commented May 15, 2026

Copy link
Copy Markdown
Contributor
  • Remove support for old versions of PTI.
  • Rework of PTI error handling.

@meta-cla meta-cla Bot added the cla signed label May 15, 2026
@tsocha

tsocha commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

@gujinghui please review it.

@aostrowski-hbn aostrowski-hbn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great idea with std::source_location!

@tsocha tsocha changed the title Remove support for old versions of PTI. Rework of PTI error handling. [xpupti] Remove support for old versions of PTI. Rework of PTI error handling. Jun 24, 2026
@aostrowski-hbn

Copy link
Copy Markdown
Contributor

@scotts @ryanzhang22 please import and review

@meta-codesync

meta-codesync Bot commented Jun 25, 2026

Copy link
Copy Markdown

@ryanzhang22 has imported this pull request. If you are a Meta employee, you can view this in D109698832.

@ryanzhang22

Copy link
Copy Markdown
Contributor

What are the supported versions of PTI in Kineto now? Do you need to document this somewhere?

@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@tsocha

tsocha commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@ryanzhang22

What are the supported versions of PTI in Kineto now? Do you need to document this somewhere?

PTI is provided by oneAPI used by pytorch.
For example:

  • Pytorch 2.12.1 uses PTI 0.16
  • Pytorch 2.13.0 uses PTI 0.17

You can check oneAPI version required by pytorch here: PyTorch Prerequisites for Intel GPUs

@tsocha

tsocha commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor Author

@ryanzhang22
Could you hint me what cause the Facebook Internal - Linter CI to fail?
I ran linter before and it passed locally.

Fail on Linux XPU PyTorch build and test looks like it got aborted for some reason.

@ryanzhang22

Copy link
Copy Markdown
Contributor

@tsocha no worries on the lint. i'll resolve it internally. Our internal linters are probably out of sync with the ones in OSS.

@meta-codesync meta-codesync Bot closed this in d5d5c01 Jun 29, 2026
@meta-codesync meta-codesync Bot added the Merged label Jun 29, 2026
@meta-codesync

meta-codesync Bot commented Jun 29, 2026

Copy link
Copy Markdown

@ryanzhang22 merged this pull request in d5d5c01.

@tsocha
tsocha deleted the dev/tsocha/pti-version-cleaning branch June 30, 2026 07:37
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jun 30, 2026
Includes the following commits:

- Serialize CUDA/ROCm JSON directly from typed metadata (pytorch/kineto#1455) ab3d5e5
- Address missing OSS license headers (pytorch/kineto#1456) 6662873
- Remove support for old versions of PTI. Rework of PTI error handling. (pytorch/kineto#1405) d5d5c01
- Add MetadataDict for nested metadata fields (pytorch/kineto#1454) 510fde2
- Update XPU test env config (pytorch/kineto#1450) 5d8f827
- Deselect XPU-failing TestProfilerDevice CPU tests (pytorch/kineto#1451) eb66185
- Escape LOG messages in output_json.cpp (pytorch/kineto#1453) 9f6b3f7
- Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1452) c4eea6b
- Add a visitor class for JSON serialization (pytorch/kineto#1449) b12cc99
- Enable OVERHEAD activity (pytorch/kineto#1441) 3980198
- Make TypedMetadata a visitor interface instead (pytorch/kineto#1448) 594e334
- Avoid CI OOMs by limiting parallel compile jobs (pytorch/kineto#1447) d5f7009
- Adds TypedMetadata.h to get_libkineto_public_headers (pytorch/kineto#1439) 774d10c
- FIx build error by removing unused param (pytorch/kineto#1445) 8341a9e
- Prefix internal controller sync/async methods (pytorch/kineto#1438) b1a1f1e
- Expose ActivityLoggerFactory via public API (pytorch/kineto#1414) 8279dc0
- Guard GenericActivityProfiler teardown against null traceBuffers_ (pytorch/kineto#1443) b7a7b0e
- Finalize pending trace on async profiler teardown (pytorch/kineto#1442) b0ddf1b

Authored-with: Claude (AI assistant)
Pull Request resolved: #188550
Approved by: https://github.com/scotts
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
Includes the following commits:

- Serialize CUDA/ROCm JSON directly from typed metadata (pytorch/kineto#1455) ab3d5e5
- Address missing OSS license headers (pytorch/kineto#1456) 6662873
- Remove support for old versions of PTI. Rework of PTI error handling. (pytorch/kineto#1405) d5d5c01
- Add MetadataDict for nested metadata fields (pytorch/kineto#1454) 510fde2
- Update XPU test env config (pytorch/kineto#1450) 5d8f827
- Deselect XPU-failing TestProfilerDevice CPU tests (pytorch/kineto#1451) eb66185
- Escape LOG messages in output_json.cpp (pytorch/kineto#1453) 9f6b3f7
- Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1452) c4eea6b
- Add a visitor class for JSON serialization (pytorch/kineto#1449) b12cc99
- Enable OVERHEAD activity (pytorch/kineto#1441) 3980198
- Make TypedMetadata a visitor interface instead (pytorch/kineto#1448) 594e334
- Avoid CI OOMs by limiting parallel compile jobs (pytorch/kineto#1447) d5f7009
- Adds TypedMetadata.h to get_libkineto_public_headers (pytorch/kineto#1439) 774d10c
- FIx build error by removing unused param (pytorch/kineto#1445) 8341a9e
- Prefix internal controller sync/async methods (pytorch/kineto#1438) b1a1f1e
- Expose ActivityLoggerFactory via public API (pytorch/kineto#1414) 8279dc0
- Guard GenericActivityProfiler teardown against null traceBuffers_ (pytorch/kineto#1443) b7a7b0e
- Finalize pending trace on async profiler teardown (pytorch/kineto#1442) b0ddf1b

Authored-with: Claude (AI assistant)
Pull Request resolved: pytorch#188550
Approved by: https://github.com/scotts
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Includes the following commits:

- Serialize CUDA/ROCm JSON directly from typed metadata (pytorch/kineto#1455) ab3d5e5
- Address missing OSS license headers (pytorch/kineto#1456) 6662873
- Remove support for old versions of PTI. Rework of PTI error handling. (pytorch/kineto#1405) d5d5c01
- Add MetadataDict for nested metadata fields (pytorch/kineto#1454) 510fde2
- Update XPU test env config (pytorch/kineto#1450) 5d8f827
- Deselect XPU-failing TestProfilerDevice CPU tests (pytorch/kineto#1451) eb66185
- Escape LOG messages in output_json.cpp (pytorch/kineto#1453) 9f6b3f7
- Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1452) c4eea6b
- Add a visitor class for JSON serialization (pytorch/kineto#1449) b12cc99
- Enable OVERHEAD activity (pytorch/kineto#1441) 3980198
- Make TypedMetadata a visitor interface instead (pytorch/kineto#1448) 594e334
- Avoid CI OOMs by limiting parallel compile jobs (pytorch/kineto#1447) d5f7009
- Adds TypedMetadata.h to get_libkineto_public_headers (pytorch/kineto#1439) 774d10c
- FIx build error by removing unused param (pytorch/kineto#1445) 8341a9e
- Prefix internal controller sync/async methods (pytorch/kineto#1438) b1a1f1e
- Expose ActivityLoggerFactory via public API (pytorch/kineto#1414) 8279dc0
- Guard GenericActivityProfiler teardown against null traceBuffers_ (pytorch/kineto#1443) b7a7b0e
- Finalize pending trace on async profiler teardown (pytorch/kineto#1442) b0ddf1b

Authored-with: Claude (AI assistant)
Pull Request resolved: pytorch#188550
Approved by: https://github.com/scotts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants