From 225a10febebdf9c402909e568f539ca1935db05b Mon Sep 17 00:00:00 2001 From: "Wang, Chuanqi" Date: Mon, 20 Jan 2025 19:31:45 +0000 Subject: [PATCH] [CI] Add xpu linux build into pull workflow (#145084) To mitigate the XPU build failure risk introduced by non-XPU specific PRs. Refer #144967 & #143803 Pull Request resolved: https://github.com/pytorch/pytorch/pull/145084 Approved by: https://github.com/huydhn, https://github.com/atalman --- .github/workflows/pull.yml | 18 ++++++++++++++++++ .github/workflows/xpu.yml | 1 + 2 files changed, 19 insertions(+) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 3c23b7eaf35..f6c5b132da7 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -541,3 +541,21 @@ jobs: docker-image: ${{ needs.linux-focal-cuda12_4-py3_10-gcc9-inductor-build.outputs.docker-image }} test-matrix: ${{ needs.linux-focal-cuda12_4-py3_10-gcc9-inductor-build.outputs.test-matrix }} secrets: inherit + + linux-jammy-xpu-2025_0-py3_9-build: + name: linux-jammy-xpu-2025.0-py3.9 + uses: ./.github/workflows/_linux-build.yml + needs: get-label-type + with: + sync-tag: linux-xpu-2025-0-build + runner_prefix: ${{ needs.get-label-type.outputs.label-type }} + build-environment: linux-jammy-xpu-2025.0-py3.9 + docker-image-name: pytorch-linux-jammy-xpu-2025.0-py3 + test-matrix: | + { include: [ + { config: "default", shard: 1, num_shards: 4, runner: "linux.idc.xpu" }, + { config: "default", shard: 2, num_shards: 4, runner: "linux.idc.xpu" }, + { config: "default", shard: 3, num_shards: 4, runner: "linux.idc.xpu" }, + { config: "default", shard: 4, num_shards: 4, runner: "linux.idc.xpu" }, + ]} + secrets: inherit diff --git a/.github/workflows/xpu.yml b/.github/workflows/xpu.yml index 8a351a4894b..12fc7462f58 100644 --- a/.github/workflows/xpu.yml +++ b/.github/workflows/xpu.yml @@ -27,6 +27,7 @@ jobs: uses: ./.github/workflows/_linux-build.yml needs: get-label-type with: + sync-tag: linux-xpu-2025-0-build runner_prefix: ${{ needs.get-label-type.outputs.label-type }} build-environment: linux-jammy-xpu-2025.0-py3.9 docker-image-name: pytorch-linux-jammy-xpu-2025.0-py3