File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1818run-name : ' NVIDIA Job - ${{ github.event.inputs.run_id }}'
1919
2020jobs :
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+
2132 run :
22- runs-on : [nvidia-docker-b200-8-x86-64]
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
2338 timeout-minutes : 10
2439 steps :
2540 - uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments