Skip to content

XPU: Add oneAPI 2026 build; package both 2025 and 2026 variants#2002

Merged
matthewdouglas merged 1 commit into
mainfrom
xpu2026
Jul 16, 2026
Merged

XPU: Add oneAPI 2026 build; package both 2025 and 2026 variants#2002
matthewdouglas merged 1 commit into
mainfrom
xpu2026

Conversation

@matthewdouglas

Copy link
Copy Markdown
Member

We currently build our SYCL XPU kernels on both Linux and Windows using oneAPI 2025.1. Since oneAPI 2026.0 has been released and PyTorch has migrated to 2026.0.0, we need to provide compatibility across these major versions.

This PR makes the following changes:

  • Updates the CI build/packaging workflow to build an additional oneAPI 2026 variant.
  • Updates CMakeLists to detect the oneAPI toolkit version and name the output library with the major version tag, similar to the naming for CUDA/ROCm artifacts.
  • At runtime we key on torch.version.xpu to determine which library to try and load to ensure we're compatible with the major version used for PyTorch.

Resolves #1991

@matthewdouglas

Copy link
Copy Markdown
Member Author

cc @jiqing-feng if you don't mind trying this out!

@github-actions

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@jiqing-feng

Copy link
Copy Markdown
Contributor

It works well on my local node:
image

@matthewdouglas
matthewdouglas merged commit 5fb6dfd into main Jul 16, 2026
132 checks passed
@matthewdouglas
matthewdouglas deleted the xpu2026 branch July 16, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prebuilt XPU wheel links libsycl.so.8; fails to load on oneAPI 2026 (libsycl.so.9)

2 participants