rocm #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rocm | |
on: | |
push: | |
branches: | |
# - main | |
- release/* | |
tags: | |
- ciflow/rocm/* | |
workflow_dispatch: | |
schedule: | |
# We have several schedules so jobs can check github.event.schedule to activate only for a fraction of the runs. | |
# Also run less frequently on weekends. | |
- cron: 45 0,8,16 * * 1-5 | |
- cron: 45 4 * * 0,6 | |
- cron: 45 4,12,20 * * 1-5 | |
- cron: 45 12 * * 0,6 | |
- cron: 29 8 * * * # about 1:29am PDT | |
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 | |
permissions: read-all | |
jobs: | |
target-determination: | |
name: before-test | |
uses: ./.github/workflows/target_determination.yml | |
permissions: | |
id-token: write | |
contents: read | |
linux-focal-rocm6_1-py3_8-build: | |
name: linux-focal-rocm6.1-py3.8 | |
uses: ./.github/workflows/_linux-build.yml | |
with: | |
build-environment: linux-focal-rocm6.1-py3.8 | |
docker-image-name: pytorch-linux-focal-rocm-n-py3 | |
sync-tag: rocm-build | |
test-matrix: | | |
{ include: [ | |
{ config: "default", shard: 1, num_shards: 6, runner: "linux.rocm.gpu.2" }, | |
{ config: "default", shard: 2, num_shards: 6, runner: "linux.rocm.gpu.2" }, | |
{ config: "default", shard: 3, num_shards: 6, runner: "linux.rocm.gpu.2" }, | |
{ config: "default", shard: 4, num_shards: 6, runner: "linux.rocm.gpu.2" }, | |
{ config: "default", shard: 5, num_shards: 6, runner: "linux.rocm.gpu.2" }, | |
{ config: "default", shard: 6, num_shards: 6, runner: "linux.rocm.gpu.2" }, | |
]} | |
linux-focal-rocm6_1-py3_8-test: | |
permissions: | |
id-token: write | |
contents: read | |
name: linux-focal-rocm6.1-py3.8 | |
uses: ./.github/workflows/_rocm-test.yml | |
needs: | |
- linux-focal-rocm6_1-py3_8-build | |
- target-determination | |
with: | |
build-environment: linux-focal-rocm6.1-py3.8 | |
docker-image: ${{ needs.linux-focal-rocm6_1-py3_8-build.outputs.docker-image }} | |
test-matrix: ${{ needs.linux-focal-rocm6_1-py3_8-build.outputs.test-matrix }} |