Skip to content

Commit 06c7516

Browse files
chuanqi129pytorchmergebot
authored andcommitted
[BE] Upgrade XPU support package to 2025.2 (pytorch#158733)
Including below changes, - Add XPU support package 2025.2 build and test in CI for both Linux and Windows - Keep XPU support package 2025.1 build in CI to ensure no break issue until PyTorch 2.9 release - Upgrade XPU support package from 2025.1 to 2025.2 in CD for both Linux and Windows - Rename Linux CI job name & image name to n & n-1 - Update XPU runtime pypi packages dependencies of CD wheels - Remove deprecated support package version docker image build Pull Request resolved: pytorch#158733 Approved by: https://github.com/EikanWang, https://github.com/atalman
1 parent 2efcf9d commit 06c7516

20 files changed

+215
-200
lines changed

.ci/docker/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,19 @@ case "$tag" in
209209
UCC_COMMIT=${_UCC_COMMIT}
210210
PYTORCH_ROCM_ARCH="gfx90a;gfx942;gfx950"
211211
;;
212-
pytorch-linux-jammy-xpu-2025.0-py3)
212+
pytorch-linux-jammy-xpu-n-1-py3)
213213
ANACONDA_PYTHON_VERSION=3.9
214214
GCC_VERSION=11
215215
VISION=yes
216-
XPU_VERSION=2025.0
216+
XPU_VERSION=2025.1
217217
NINJA_VERSION=1.9.0
218218
TRITON=yes
219219
;;
220-
pytorch-linux-jammy-xpu-2025.1-py3)
220+
pytorch-linux-jammy-xpu-n-py3)
221221
ANACONDA_PYTHON_VERSION=3.9
222222
GCC_VERSION=11
223223
VISION=yes
224-
XPU_VERSION=2025.1
224+
XPU_VERSION=2025.2
225225
NINJA_VERSION=1.9.0
226226
TRITON=yes
227227
;;

.ci/docker/common/install_xpu.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ if [[ "${XPU_DRIVER_TYPE,,}" == "lts" ]]; then
146146
XPU_DRIVER_VERSION="/lts/2350"
147147
fi
148148

149-
# Default use Intel® oneAPI Deep Learning Essentials 2025.0
150-
if [[ "$XPU_VERSION" == "2025.1" ]]; then
151-
XPU_PACKAGES="intel-deep-learning-essentials-2025.1"
149+
# Default use Intel® oneAPI Deep Learning Essentials 2025.1
150+
if [[ "$XPU_VERSION" == "2025.2" ]]; then
151+
XPU_PACKAGES="intel-deep-learning-essentials-2025.2"
152152
else
153-
XPU_PACKAGES="intel-deep-learning-essentials-2025.0"
153+
XPU_PACKAGES="intel-deep-learning-essentials-2025.1"
154154
fi
155155

156156
# The installation depends on the base OS

.ci/docker/manywheel/Dockerfile_2_28

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,6 @@ ENV XPU_DRIVER_TYPE ROLLING
175175
RUN python3 -m pip install --upgrade pip && \
176176
python3 -mpip install cmake==3.28.4
177177
ADD ./common/install_xpu.sh install_xpu.sh
178-
ENV XPU_VERSION 2025.1
178+
ENV XPU_VERSION 2025.2
179179
RUN bash ./install_xpu.sh && rm install_xpu.sh
180180
RUN pushd /opt/_internal && tar -xJf static-libs-for-embedding-only.tar.xz && popd

.ci/pytorch/windows/internal/xpu_install.bat

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ if not exist "%SRC_DIR%\temp_build" mkdir "%SRC_DIR%\temp_build"
1313
:xpu_bundle_install_start
1414

1515
set XPU_BUNDLE_PARENT_DIR=C:\Program Files (x86)\Intel\oneAPI
16-
set XPU_BUNDLE_URL=https://registrationcenter-download.intel.com/akdlm/IRC_NAS/9d6d6c17-ca2d-4735-9331-99447e4a1280/intel-deep-learning-essentials-2025.0.1.28_offline.exe
16+
set XPU_BUNDLE_URL=https://registrationcenter-download.intel.com/akdlm/IRC_NAS/75d4eb97-914a-4a95-852c-7b9733d80f74/intel-deep-learning-essentials-2025.1.3.8_offline.exe
1717
set XPU_BUNDLE_PRODUCT_NAME=intel.oneapi.win.deep-learning-essentials.product
18-
set XPU_BUNDLE_VERSION=2025.0.1+20
18+
set XPU_BUNDLE_VERSION=2025.1.3+5
1919
set XPU_BUNDLE_INSTALLED=0
2020
set XPU_BUNDLE_UNINSTALL=0
2121
set XPU_EXTRA_URL=NULL
@@ -24,9 +24,9 @@ set XPU_EXTRA_VERSION=2025.0.1+1226
2424
set XPU_EXTRA_INSTALLED=0
2525
set XPU_EXTRA_UNINSTALL=0
2626

27-
if not [%XPU_VERSION%]==[] if [%XPU_VERSION%]==[2025.1] (
28-
set XPU_BUNDLE_URL=https://registrationcenter-download.intel.com/akdlm/IRC_NAS/75d4eb97-914a-4a95-852c-7b9733d80f74/intel-deep-learning-essentials-2025.1.3.8_offline.exe
29-
set XPU_BUNDLE_VERSION=2025.1.3+5
27+
if not [%XPU_VERSION%]==[] if [%XPU_VERSION%]==[2025.2] (
28+
set XPU_BUNDLE_URL=https://registrationcenter-download.intel.com/akdlm/IRC_NAS/24751ead-ddc5-4479-b9e6-f9fe2ff8b9f2/intel-deep-learning-essentials-2025.2.1.25_offline.exe
29+
set XPU_BUNDLE_VERSION=2025.2.1+20
3030
)
3131

3232
:: Check if XPU bundle is target version or already installed
@@ -90,14 +90,3 @@ if errorlevel 1 exit /b 1
9090
del xpu_extra.exe
9191

9292
:xpu_install_end
93-
94-
if not "%XPU_ENABLE_KINETO%"=="1" goto install_end
95-
:: Install Level Zero SDK
96-
set XPU_EXTRA_LZ_URL=https://github.com/oneapi-src/level-zero/releases/download/v1.14.0/level-zero-sdk_1.14.0.zip
97-
curl -k -L %XPU_EXTRA_LZ_URL% --output "%SRC_DIR%\temp_build\level_zero_sdk.zip"
98-
echo "Installing level zero SDK..."
99-
7z x "%SRC_DIR%\temp_build\level_zero_sdk.zip" -o"%SRC_DIR%\temp_build\level_zero"
100-
set "INCLUDE=%SRC_DIR%\temp_build\level_zero\include;%INCLUDE%"
101-
del "%SRC_DIR%\temp_build\level_zero_sdk.zip"
102-
103-
:install_end

.circleci/scripts/binary_windows_build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ fi
1515
if [[ "$DESIRED_CUDA" == 'xpu' ]]; then
1616
export VC_YEAR=2022
1717
export USE_SCCACHE=0
18-
export XPU_VERSION=2025.1
19-
export XPU_ENABLE_KINETO=1
18+
export XPU_VERSION=2025.2
2019
fi
2120

2221
echo "Free space on filesystem before build:"

.circleci/scripts/binary_windows_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export VC_YEAR=2022
88

99
if [[ "$DESIRED_CUDA" == 'xpu' ]]; then
1010
export VC_YEAR=2022
11-
export XPU_VERSION=2025.1
11+
export XPU_VERSION=2025.2
1212
fi
1313

1414
pushd "$PYTORCH_ROOT/.ci/pytorch/"

.github/scripts/generate_binary_build_matrix.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,26 +113,26 @@
113113
"nvidia-cufile==1.15.0.42; platform_system == 'Linux' and platform_machine == 'x86_64'"
114114
),
115115
"xpu": (
116-
"intel-cmplr-lib-rt==2025.1.1 | "
117-
"intel-cmplr-lib-ur==2025.1.1 | "
118-
"intel-cmplr-lic-rt==2025.1.1 | "
119-
"intel-sycl-rt==2025.1.1 | "
120-
"oneccl-devel==2021.15.2; platform_system == 'Linux' and platform_machine == 'x86_64' | "
121-
"oneccl==2021.15.2; platform_system == 'Linux' and platform_machine == 'x86_64' | "
122-
"impi-rt==2021.15.0; platform_system == 'Linux' and platform_machine == 'x86_64' | "
123-
"onemkl-sycl-blas==2025.1.0 | "
124-
"onemkl-sycl-dft==2025.1.0 | "
125-
"onemkl-sycl-lapack==2025.1.0 | "
126-
"onemkl-sycl-rng==2025.1.0 | "
127-
"onemkl-sycl-sparse==2025.1.0 | "
128-
"dpcpp-cpp-rt==2025.1.1 | "
129-
"intel-opencl-rt==2025.1.1 | "
130-
"mkl==2025.1.0 | "
131-
"intel-openmp==2025.1.1 | "
132-
"tbb==2022.1.0 | "
133-
"tcmlib==1.3.0 | "
134-
"umf==0.10.0 | "
135-
"intel-pti==0.12.3"
116+
"intel-cmplr-lib-rt==2025.2.1 | "
117+
"intel-cmplr-lib-ur==2025.2.1 | "
118+
"intel-cmplr-lic-rt==2025.2.1 | "
119+
"intel-sycl-rt==2025.2.1 | "
120+
"oneccl-devel==2021.16.1; platform_system == 'Linux' and platform_machine == 'x86_64' | "
121+
"oneccl==2021.16.1; platform_system == 'Linux' and platform_machine == 'x86_64' | "
122+
"impi-rt==2021.16.1; platform_system == 'Linux' and platform_machine == 'x86_64' | "
123+
"onemkl-sycl-blas==2025.2.0 | "
124+
"onemkl-sycl-dft==2025.2.0 | "
125+
"onemkl-sycl-lapack==2025.2.0 | "
126+
"onemkl-sycl-rng==2025.2.0 | "
127+
"onemkl-sycl-sparse==2025.2.0 | "
128+
"dpcpp-cpp-rt==2025.2.1 | "
129+
"intel-opencl-rt==2025.2.1 | "
130+
"mkl==2025.2.0 | "
131+
"intel-openmp==2025.2.1 | "
132+
"tbb==2022.2.0 | "
133+
"tcmlib==1.4.0 | "
134+
"umf==0.11.0 | "
135+
"intel-pti==0.13.1"
136136
),
137137
}
138138

.github/templates/common.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{%- set download_artifact_action = "actions/[email protected]" -%}
55

66
{%- set timeout_minutes = 240 -%}
7-
{%- set timeout_minutes_windows_binary = 300 -%}
7+
{%- set timeout_minutes_windows_binary = 360 -%}
88

99
{%- macro concurrency(build_environment) -%}
1010
concurrency:

.github/workflows/docker-builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
pytorch-linux-jammy-py3.10-gcc11,
6767
pytorch-linux-jammy-py3.9-gcc11-inductor-benchmarks,
6868
pytorch-linux-jammy-py3.12-halide,
69-
pytorch-linux-jammy-xpu-2025.0-py3,
70-
pytorch-linux-jammy-xpu-2025.1-py3,
69+
pytorch-linux-jammy-xpu-n-1-py3,
70+
pytorch-linux-jammy-xpu-n-py3,
7171
pytorch-linux-jammy-py3-clang18-asan,
7272
pytorch-linux-jammy-py3-clang12-onnx,
7373
pytorch-linux-jammy-linter,

.github/workflows/generated-linux-binary-manywheel-nightly.yml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)