Skip to content

Commit a1aebd1

Browse files
huydhnfacebook-github-bot
authored andcommitted
Switch to the standard setup-nvidia GitHub action (#264)
Summary: As all PyTorch repos are now running on share runners as part of project Nova. We need to avoid code duplication when copying `install_nvidia_utils_linux.sh` and older NVIDIA driver by switching reusable [setup-nvidia](https://github.com/pytorch/test-infra/blob/main/.github/actions/setup-nvidia/action.yml) from test-infra repo. For the context, I'm currently seeing some NVIDIA installation failures from PyTorch where the older driver `510.60.02` is used, so I'm trying to roll out this new GitHub action to avoid this: * https://github.com/pytorch/pytorch/actions/runs/3384224730/jobs/5621261503 * https://github.com/pytorch/pytorch/actions/runs/3383111924/jobs/5618889208 * https://github.com/pytorch/pytorch/actions/runs/3382298003/jobs/5617245371 Pull Request resolved: #264 Reviewed By: PaliC Differential Revision: D41190057 Pulled By: huydhn fbshipit-source-id: f0bacd00d5963ad1757a49d54a3711e7cb9da2d0
1 parent 1a459c7 commit a1aebd1

File tree

2 files changed

+1
-102
lines changed

2 files changed

+1
-102
lines changed

.github/scripts/install_nvidia_utils_linux.sh

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

.github/workflows/runtime_tests.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,8 @@ jobs:
2020
uses: actions/checkout@v2
2121
with:
2222
submodules: true
23-
- name: Clean up previous CUDA driver installations
24-
shell: bash
25-
run: |
26-
set -x
27-
yum list installed | grep nvidia || true
28-
yum list installed | grep cuda || true
29-
sudo yum remove -y cuda || true
30-
sudo yum remove -y cuda-drivers || true
31-
sudo yum remove -y "*nvidia*" || true
3223
- name: Install nvidia driver, nvidia-docker runtime, set GPU_FLAG
33-
run: |
34-
bash .github/scripts/install_nvidia_utils_linux.sh || true
35-
echo "GPU_FLAG=--gpus all" >> "${GITHUB_ENV}"
24+
uses: pytorch/test-infra/.github/actions/setup-nvidia@main
3625
- name: Setup SSH (Click me for login details)
3726
uses: ./.github/actions/setup-ssh
3827
with:

0 commit comments

Comments
 (0)