forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.38 KB
/
xpu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: xpu
on:
push:
tags:
- ciflow/xpu/*
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
cancel-in-progress: true
jobs:
linux-jammy-xpu-py3_8-build:
name: linux-jammy-xpu-py3.8
uses: ./.github/workflows/_linux-build.yml
with:
build-environment: linux-jammy-xpu-py3.8
docker-image-name: pytorch-linux-jammy-xpu-2024.0-py3
runner: linux.2xlarge
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" },
]}
linux-jammy-xpu-py3_8-test:
name: linux-jammy-xpu-py3.8
uses: ./.github/workflows/_xpu-test.yml
needs: linux-jammy-xpu-py3_8-build
permissions:
id-token: write
contents: read
with:
build-environment: linux-jammy-xpu-py3.8
docker-image: ${{ needs.linux-jammy-xpu-py3_8-build.outputs.docker-image }}
test-matrix: ${{ needs.linux-jammy-xpu-py3_8-build.outputs.test-matrix }}