Skip to content

Commit 7fabb73

Browse files
huydhnpytorchmergebot
authored andcommitted
Add ciflow/rocm label to run ROCm jobs (pytorch#111394)
Fixes pytorch/test-infra#4516. As this is not part of trunk, it won't block regular merge. On the other hand, we can still add `ciflow/rocm` to run it on PR. ~~I'll add an auto label rule for this after this is merged and the label becomes available~~ Here it is pytorch/test-infra#4647 Pull Request resolved: pytorch#111394 Approved by: https://github.com/ZainRizvi
1 parent 16cb3bd commit 7fabb73

File tree

3 files changed

+41
-23
lines changed

3 files changed

+41
-23
lines changed

.github/pytorch-probot.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ciflow_push_tags:
1010
- ciflow/mps
1111
- ciflow/nightly
1212
- ciflow/periodic
13+
- ciflow/rocm
1314
- ciflow/slow
1415
- ciflow/trunk
1516
- ciflow/unstable

.github/workflows/rocm.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: rocm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release/*
8+
tags:
9+
- ciflow/rocm/*
10+
workflow_dispatch:
11+
schedule:
12+
- cron: 29 8 * * * # about 1:29am PDT
13+
14+
concurrency:
15+
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' }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
linux-focal-rocm5_6-py3_8-build:
20+
name: linux-focal-rocm5.6-py3.8
21+
uses: ./.github/workflows/_linux-build.yml
22+
with:
23+
build-environment: linux-focal-rocm5.6-py3.8
24+
docker-image-name: pytorch-linux-focal-rocm-n-py3
25+
sync-tag: rocm-build
26+
test-matrix: |
27+
{ include: [
28+
{ config: "default", shard: 1, num_shards: 3, runner: "linux.rocm.gpu" },
29+
{ config: "default", shard: 2, num_shards: 3, runner: "linux.rocm.gpu" },
30+
{ config: "default", shard: 3, num_shards: 3, runner: "linux.rocm.gpu" },
31+
]}
32+
33+
linux-focal-rocm5_6-py3_8-test:
34+
name: linux-focal-rocm5.6-py3.8
35+
uses: ./.github/workflows/_rocm-test.yml
36+
needs: linux-focal-rocm5_6-py3_8-build
37+
with:
38+
build-environment: linux-focal-rocm5.6-py3.8
39+
docker-image: ${{ needs.linux-focal-rocm5_6-py3_8-build.outputs.docker-image }}
40+
test-matrix: ${{ needs.linux-focal-rocm5_6-py3_8-build.outputs.test-matrix }}

.github/workflows/trunk.yml

-23
Original file line numberDiff line numberDiff line change
@@ -174,26 +174,3 @@ jobs:
174174
{ config: "default", shard: 6, num_shards: 6, runner: "windows.g5.4xlarge.nvidia.gpu" },
175175
{ config: "force_on_cpu", shard: 1, num_shards: 1, runner: "windows.4xlarge.nonephemeral" },
176176
]}
177-
178-
linux-focal-rocm5_6-py3_8-build:
179-
name: linux-focal-rocm5.6-py3.8
180-
uses: ./.github/workflows/_linux-build.yml
181-
with:
182-
build-environment: linux-focal-rocm5.6-py3.8
183-
docker-image-name: pytorch-linux-focal-rocm-n-py3
184-
sync-tag: rocm-build
185-
test-matrix: |
186-
{ include: [
187-
{ config: "default", shard: 1, num_shards: 3, runner: "linux.rocm.gpu" },
188-
{ config: "default", shard: 2, num_shards: 3, runner: "linux.rocm.gpu" },
189-
{ config: "default", shard: 3, num_shards: 3, runner: "linux.rocm.gpu" },
190-
]}
191-
192-
linux-focal-rocm5_6-py3_8-test:
193-
name: linux-focal-rocm5.6-py3.8
194-
uses: ./.github/workflows/_rocm-test.yml
195-
needs: linux-focal-rocm5_6-py3_8-build
196-
with:
197-
build-environment: linux-focal-rocm5.6-py3.8
198-
docker-image: ${{ needs.linux-focal-rocm5_6-py3_8-build.outputs.docker-image }}
199-
test-matrix: ${{ needs.linux-focal-rocm5_6-py3_8-build.outputs.test-matrix }}

0 commit comments

Comments
 (0)