Skip to content

Commit 9177d6e

Browse files
jithunnair-amdpytorchmergebot
authored andcommitted
[ROCm][CI] Add ROCm noble image caching to docker-cache-rocm.yml (pytorch#168202)
Needed due to pytorch#168162, which means rocm-mi300.yml (uses noble images) and periodic-rocm-mi300.yml (uses jammy images) will both run on the new MI3xx capacity. Also re-enable `workflow_dispatch` with inputs required to run successfully Pull Request resolved: pytorch#168202 Approved by: https://github.com/jeffdaily
1 parent 34bb9c4 commit 9177d6e

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/docker-cache-rocm.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,19 @@ on:
66
branches: [main, release]
77
types:
88
- completed
9+
workflow_dispatch:
10+
inputs:
11+
branch:
12+
type: string
13+
description: Branch corresponding to the docker images being cached
14+
required: true
15+
run_id:
16+
type: string
17+
description: Workflow run id to pull artifacts from
18+
required: true
919

1020
concurrency:
11-
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
21+
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.event.inputs.branch }}
1222
cancel-in-progress: true
1323

1424
permissions:
@@ -29,7 +39,7 @@ jobs:
2939
- name: Download artifacts
3040
uses: actions/[email protected]
3141
with:
32-
run-id: ${{ github.event.workflow_run.id }}
42+
run-id: ${{ github.event.workflow_run.id || github.event.inputs.run_id }}
3343
path: ./docker-builds-artifacts
3444
merge-multiple: true
3545
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -49,9 +59,8 @@ jobs:
4959
matrix:
5060
runner: [linux.rocm.gfx942.docker-cache]
5161
docker-image: [
52-
"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3 }}"
53-
#"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3 }}",
54-
#"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-noble-rocm-n-py3 }}",
62+
"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3 }}",
63+
"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-noble-rocm-n-py3 }}"
5564
#"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3-benchmarks }}"
5665
]
5766
runs-on: "${{ matrix.runner }}"
@@ -91,7 +100,7 @@ jobs:
91100
docker_image_tag=${{ matrix.docker-image }}
92101
docker_image_tag="${docker_image_tag#*:}" # Remove everything before and including first ":"
93102
docker_image_tag="${docker_image_tag%-*}" # Remove everything after and including last "-"
94-
ref_name=${{ github.event.workflow_run.head_branch }}
103+
ref_name=${{ github.event.workflow_run.head_branch || github.event.inputs.branch }}
95104
if [[ $ref_name =~ "release/" ]]; then
96105
ref_suffix="release"
97106
elif [[ $ref_name == "main" ]]; then

0 commit comments

Comments
 (0)