Skip to content

Commit 2f8192c

Browse files
committed
Install CUDA in more CI runs
1 parent 55d7cf1 commit 2f8192c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
- name: Checkout the Repository
2222
uses: actions/checkout@v2
2323

24+
- name: Install CUDA
25+
run: |
26+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
27+
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
28+
curl -L -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
29+
sudo dpkg -i cuda-keyring_1.0-1_all.deb
30+
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
31+
sudo apt-get update -q
32+
sudo apt-get install cuda -y --no-install-recommends
33+
2434
- name: Install OpenMPI
2535
run: |
2636
sudo apt-get update -q
@@ -79,6 +89,16 @@ jobs:
7989
steps:
8090
- name: Checkout the Repository
8191
uses: actions/checkout@v2
92+
93+
- name: Install CUDA
94+
run: |
95+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
96+
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
97+
curl -L -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
98+
sudo dpkg -i cuda-keyring_1.0-1_all.deb
99+
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
100+
sudo apt-get update -q
101+
sudo apt-get install cuda -y --no-install-recommends
82102
83103
- name: Install OpenMPI
84104
run: |

0 commit comments

Comments
 (0)