Skip to content

Commit 2d6cc43

Browse files
authored
Merge pull request #400 from gpu-mode/per-gpu-concurrency
Simplify NVIDIA workflow runner selection
2 parents 8ed6150 + eabfcdf commit 2d6cc43

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/nvidia_workflow.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,8 @@ on:
1818
run-name: 'NVIDIA Job - ${{ github.event.inputs.run_id }}'
1919

2020
jobs:
21-
select-runner:
22-
runs-on: ubuntu-latest
23-
outputs:
24-
runner: ${{ steps.pick.outputs.runner }}
25-
steps:
26-
- id: pick
27-
run: |
28-
runners=("b200-02-gpu0" "b200-02-gpu1" "b200-02-gpu2" "b200-02-gpu3" "b200-02-gpu4" "b200-02-gpu5" "b200-02-gpu6" "b200-02-gpu7")
29-
index=$(( ${{ github.run_number }} % 8 ))
30-
echo "runner=${runners[$index]}" >> $GITHUB_OUTPUT
31-
3221
run:
33-
needs: select-runner
34-
runs-on: ${{ needs.select-runner.outputs.runner }}
35-
concurrency:
36-
group: ${{ needs.select-runner.outputs.runner }}
37-
cancel-in-progress: false
22+
runs-on: [self-hosted, nvidia-docker-b200-8-x86-64]
3823
timeout-minutes: 10
3924
steps:
4025
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)