Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/195436
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 8781cc4 with merge base 8013239 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
xuhancn
force-pushed
the
agent/enable-compiler-cache-for-xpu-linux
branch
from
August 31, 2026 11:53
d5b0a07 to
e2484a2
Compare
xuhancn
marked this pull request as draft
August 31, 2026 12:28
xuhancn
marked this pull request as ready for review
September 2, 2026 02:20
xuhancn
force-pushed
the
agent/enable-compiler-cache-for-xpu-linux
branch
from
September 2, 2026 02:54
07fab40 to
9ca978e
Compare
Bump third_party/xpu.txt to c150ee84 (intel/torch-xpu-ops), which routes the per-TU icpx -fsycl -c object compiles through CMAKE_SYCL_COMPILER_LAUNCHER (extends pytorch#2260's device-link-only support), so a compiler cache can cover the torch_xpu_ops SYCL objects. The XPU host fraction is already cached via the existing USE_CCACHE default (sccache auto-selected when ccache is absent, as on the CI image), matching how CUDA builds enable sccache. Test: local Linux XPU build; torch_xpu_ops with ccache depend_mode rebuilds 376/376 object compiles (host + SYCL) and hits on warm rebuild.
EikanWang
marked this pull request as draft
September 3, 2026 14:01
gujinghui
reviewed
Sep 7, 2026
gujinghui
reviewed
Sep 7, 2026
gujinghui
reviewed
Sep 7, 2026
gujinghui
approved these changes
Sep 10, 2026
…er-cache-for-xpu-linux # Conflicts: # third_party/xpu.txt
CMAKE_SYCL_COMPILER_LAUNCHER is a normal cache variable read by torch-xpu-ops FindSYCL.cmake, not a dependency on native CMake SYCL-language support. Document that contract next to the ccache/sccache launcher wiring.\n\nTest Plan:\n\n\n\nAI-assisted: This commit was authored with the help of an AI coding assistant.
xuhancn
marked this pull request as ready for review
September 14, 2026 03:00
Pin torch-xpu-ops to the latest main commit, which includes the merged SYCL compiler launcher support from intel/torch-xpu-ops#5154. Test Plan: ``` lintrunner -a third_party/xpu.txt git diff --check -- third_party/xpu.txt ``` AI-assisted: This commit was authored with the help of an AI coding assistant.
Keep the newer torch-xpu-ops main pin from this branch while merging the latest PyTorch main changes. The selected pin contains the merged SYCL compiler launcher support from intel/torch-xpu-ops#5154. Test Plan: ``` lintrunner -a CMakeLists.txt third_party/xpu.txt git diff --check upstream/main -- CMakeLists.txt third_party/xpu.txt ``` AI-assisted: This commit was authored with the help of an AI coding assistant.
chuanqi129
approved these changes
Sep 15, 2026
Collaborator
Author
|
@atalman please review this PR. |
Keep this PR focused on wiring the top-level SYCL compiler launcher. The downstream per-TU support merged after PyTorch's current pin and can arrive through the normal torch-xpu-ops pin update process, avoiding a conflict with concurrent pin bumps. Test Plan: ``` lintrunner -a git diff --check upstream/main -- CMakeLists.txt third_party/xpu.txt ``` Authored with the assistance of an AI coding assistant.
Advance the PR merge base so third_party/xpu.txt is inherited from current PyTorch main and no longer appears in this PR's effective diff. Test Plan: ``` lintrunner -a git diff --check upstream/main -- CMakeLists.txt third_party/xpu.txt ``` Authored with the assistance of an AI coding assistant.
atalman
approved these changes
Sep 16, 2026
Collaborator
Author
|
@pytorchbot merge |
Collaborator
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Enable the SYCL launcher path for XPU builds.
Highlights:
CMakeLists.txtincludesSYCLin theUSE_CCACHElauncher loop, soCMAKE_SYCL_COMPILER_LAUNCHERis set through the same top-level CMake logic as the other compiler launchers.intel/torch-xpu-ops#5154has merged as commit8cad22eb640c5df28b7592f0d559a80ea7b09252.third_party/xpu.txt. The current PyTorch pin,c513b6ad85ffe36858bfbf39fb1103d19cecd8e2, predates the downstream support, so per-TU SYCL launcher coverage becomes active after a normal torch-xpu-ops pin update reaches8cad22eb640c5df28b7592f0d559a80ea7b09252or newer.Performance:
The measurements compare the baseline PR with this PR, using a torch-xpu-ops revision containing the downstream support. See the source results and CI links.
Test Plan:
torch_xpu_opswith ccachedepend_moderebuilds 376/376 objects through the cache.lintrunner -a CMakeLists.txtgit diff --check -- CMakeLists.txt