Skip to content

Commit 6523d2f

Browse files
authored
Use OS runner labels in workflows (#3526)
This allows selecting, for example, a linux runner with `["linux", "a770"]` and a windows runner with `["windows", "a770"]`.
1 parent 99027d2 commit 6523d2f

13 files changed

+14
-331
lines changed

.github/workflows/build-test-reusable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ env:
7474
jobs:
7575
integration-tests:
7676
name: Integration tests
77-
runs-on: ${{ fromJson(inputs.runner_label && format('["{0}"]', inputs.runner_label) || format('["{0}", "{1}", "{2}"]', inputs.device, inputs.driver_version, inputs.runner_version)) }}
77+
runs-on: ${{ fromJson(inputs.runner_label && format('["linux", "{0}"]', inputs.runner_label) || format('["linux", "{0}", "{1}", "{2}"]', inputs.device, inputs.driver_version, inputs.runner_version)) }}
7878
defaults:
7979
run:
8080
shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}"

.github/workflows/build-test-windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ env:
3030
jobs:
3131
build:
3232
name: Build and test
33-
runs-on: ${{ inputs.runner_label }}
33+
runs-on:
34+
- windows
35+
- ${{ inputs.runner_label }}
3436
# Building PyTorch can take up to 4 hours on certain machines, increasing the timeout to 8 hours.
3537
timeout-minutes: 480
3638
steps:

.github/workflows/build-windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ env:
2020
jobs:
2121
build:
2222
name: Build
23-
runs-on: avc336
23+
runs-on:
24+
- windows
25+
- avc336
2426
steps:
2527
- name: Enable long paths
2628
run: |

.github/workflows/conda-test-reusable.yml

Lines changed: 0 additions & 187 deletions
This file was deleted.

.github/workflows/conda-test.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/e2e-reusable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
run_tests:
5555
name: Test ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }}
5656
runs-on:
57+
- linux
5758
- ${{ inputs.runner_label || 'max1550' }}
5859
timeout-minutes: 720
5960
defaults:

.github/workflows/inductor-tests-reusable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
build:
3535
name: Test
3636
runs-on:
37+
- linux
3738
- ${{ inputs.runner_label || 'rolling' }}
3839
timeout-minutes: 720
3940
defaults:

.github/workflows/pip-test-windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ env:
4242
jobs:
4343
build:
4444
name: Build and test
45-
runs-on: ${{ inputs.runner_label || 'win-a770' }}
45+
runs-on:
46+
- windows
47+
- ${{ inputs.runner_label || 'win-a770' }}
4648
steps:
4749
- name: Enable long paths
4850
run: |

.github/workflows/triton-benchmarks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
build:
5858
name: Triton benchmarks
5959
runs-on:
60+
- linux
6061
- ${{ inputs.runner_label || 'max1550' }}
6162
timeout-minutes: 720
6263
defaults:

.github/workflows/try-latest-pytorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ jobs:
128128
dtype: ${{ matrix.dtype }}
129129
models: subset
130130
only_one_model: ""
131-
runner_label: "${{ matrix.runner_label }}"
131+
runner_label: ${{ inputs.runner_label }}

0 commit comments

Comments
 (0)