Skip to content

Commit 8ed6150

Browse files
authored
GPU concurrency (#399)
* GPU concurrency * update
1 parent 4e38c8d commit 8ed6150

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/nvidia_workflow.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,23 @@ 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+
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

0 commit comments

Comments
 (0)