Skip to content

Commit 2a70d98

Browse files
chuanqi129pytorchmergebot
authored andcommitted
[CI] Migrate XPU build and test to python 3.10 (pytorch#161708)
Follow pytorch#161167 Pull Request resolved: pytorch#161708 Approved by: https://github.com/malfet
1 parent 55c289d commit 2a70d98

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.ci/docker/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,15 @@ case "$tag" in
210210
PYTORCH_ROCM_ARCH="gfx90a;gfx942;gfx950"
211211
;;
212212
pytorch-linux-jammy-xpu-n-1-py3)
213-
ANACONDA_PYTHON_VERSION=3.9
213+
ANACONDA_PYTHON_VERSION=3.10
214214
GCC_VERSION=11
215215
VISION=yes
216216
XPU_VERSION=2025.1
217217
NINJA_VERSION=1.9.0
218218
TRITON=yes
219219
;;
220220
pytorch-linux-jammy-xpu-n-py3)
221-
ANACONDA_PYTHON_VERSION=3.9
221+
ANACONDA_PYTHON_VERSION=3.10
222222
GCC_VERSION=11
223223
VISION=yes
224224
XPU_VERSION=2025.2

.github/workflows/xpu.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
curr_branch: ${{ github.head_ref || github.ref_name }}
2727
curr_ref_type: ${{ github.ref_type }}
2828

29-
linux-jammy-xpu-n-1-py3_9-build:
30-
name: linux-jammy-xpu-n-1-py3.9
29+
linux-jammy-xpu-n-1-py3_10-build:
30+
name: linux-jammy-xpu-n-1-py3.10
3131
uses: ./.github/workflows/_linux-build.yml
3232
needs: get-label-type
3333
with:
3434
sync-tag: linux-xpu-n-1-build
3535
runner_prefix: ${{ needs.get-label-type.outputs.label-type }}
36-
build-environment: linux-jammy-xpu-n-1-py3.9
36+
build-environment: linux-jammy-xpu-n-1-py3.10
3737
docker-image-name: ci-image:pytorch-linux-jammy-xpu-n-1-py3
3838
runner: linux.12xlarge
3939
test-matrix: |
@@ -47,14 +47,14 @@ jobs:
4747
]}
4848
secrets: inherit
4949

50-
linux-jammy-xpu-n-py3_9-build:
51-
name: linux-jammy-xpu-n-py3.9
50+
linux-jammy-xpu-n-py3_10-build:
51+
name: linux-jammy-xpu-n-py3.10
5252
uses: ./.github/workflows/_linux-build.yml
5353
needs: get-label-type
5454
with:
5555
sync-tag: linux-xpu-n-build
5656
runner_prefix: ${{ needs.get-label-type.outputs.label-type }}
57-
build-environment: linux-jammy-xpu-n-py3.9
57+
build-environment: linux-jammy-xpu-n-py3.10
5858
docker-image-name: ci-image:pytorch-linux-jammy-xpu-n-py3
5959
runner: linux.12xlarge
6060
test-matrix: |
@@ -70,17 +70,17 @@ jobs:
7070
]}
7171
secrets: inherit
7272

73-
linux-jammy-xpu-n-py3_9-test:
74-
name: linux-jammy-xpu-n-py3.9
73+
linux-jammy-xpu-n-py3_10-test:
74+
name: linux-jammy-xpu-n-py3.10
7575
uses: ./.github/workflows/_xpu-test.yml
76-
needs: linux-jammy-xpu-n-py3_9-build
76+
needs: linux-jammy-xpu-n-py3_10-build
7777
permissions:
7878
id-token: write
7979
contents: read
8080
with:
81-
build-environment: linux-jammy-xpu-n-py3.9
82-
docker-image: ${{ needs.linux-jammy-xpu-n-py3_9-build.outputs.docker-image }}
83-
test-matrix: ${{ needs.linux-jammy-xpu-n-py3_9-build.outputs.test-matrix }}
81+
build-environment: linux-jammy-xpu-n-py3.10
82+
docker-image: ${{ needs.linux-jammy-xpu-n-py3_10-build.outputs.docker-image }}
83+
test-matrix: ${{ needs.linux-jammy-xpu-n-py3_10-build.outputs.test-matrix }}
8484
secrets: inherit
8585

8686
windows-xpu-n-1-build:

0 commit comments

Comments
 (0)