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

[CI] Update XPU test env config - #1450

Closed
chuanqi129 wants to merge 1 commit into
pytorch:mainfrom
chuanqi129:patch-1
Closed

chuanqi129 wants to merge 1 commit into
pytorch:mainfrom
chuanqi129:patch-1

Conversation

@chuanqi129

Copy link
Copy Markdown
Contributor

As PR pytorch/pytorch#182003 has upgrade the xpu support package version, need to follow the new xpu test env config

@meta-cla meta-cla Bot added the cla signed label Jun 26, 2026
meta-codesync Bot pushed a commit that referenced this pull request Jun 26, 2026
Summary:
## Problem

`linux_xpu_pytorch.yml` has been red on `main`. The job builds PyTorch (`USE_XPU=1`) and runs `test/profiler/`. Two CPU-variant tests from the device-parametrized `TestProfilerDevice` (added in pytorch/pytorch#182434) fail and were never deselected for XPU, unlike CUDA/ROCm (#1429).

## What fails and why (verified on PVC with an XPU device present)

- **`test_forked_process_cpu`** — `RuntimeError: Cannot re-initialize XPU in forked subprocess`. Independent of runtime XPU availability (it also fails with an XPU device present); already deselected on CUDA and ROCm.
- **`test_basic_chrome_trace_cpu`** — `_validate_basic_json` indexes `traceEvents[-4]` expecting the `"PyTorch Profiler (0)"` event, but a `USE_XPU=1` build appends a second `"__xpu_profiler__ (0)"` instance to the trace, shifting that fixed offset. Caused by XPU being *built*, not by runtime availability. An upstream fix to locate the events by name instead of by offset is tracked separately; deselecting until it lands.

## Relationship to #1450

Orthogonal. #1450 fixes runtime XPU visibility (`umf`/`tcm` env sourcing); this PR fixes the two build-dependent test failures. Both are needed for the workflow to go green.

Note: `test_kineto_profiler_with_environment_variable_cpu` is intentionally **not** deselected here — it passes once XPU is available at runtime (covered by #1450).

Pull Request resolved: #1451

Reviewed By: scotts

Differential Revision: D109839396

Pulled By: ryanzhang22

fbshipit-source-id: 7a865d27175a92f8fc0cf42d1e37b10d532a26db
As PR pytorch/pytorch#182003 has upgrade the xpu support package version, need to follow the new xpu test env config
@aostrowski-hbn

Copy link
Copy Markdown
Contributor

@ryanzhang22 please import and add the ciflow/xpu label. This should fix remaining XPU CI issues.

@meta-codesync

meta-codesync Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in 5d8f827 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 5d8f827.

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.

3 participants