Skip to content

Commit e6476c9

Browse files
Update ci.yaml
1 parent 94a6f1f commit e6476c9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: nvidia/cuda:12.4.0-base-ubuntu22.04
1212
strategy:
1313
matrix:
1414
# Test with LibTorch CPU and GPU
@@ -24,7 +24,12 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
sudo apt-get update
27-
sudo apt-get install -y --no-install-recommends cuda-toolkit-12-4 # Install CUDA Toolkit
27+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
28+
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
29+
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
30+
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"
31+
sudo apt-get update
32+
sudo apt-get -y install cuda-toolkit-12-4
2833
2934
- name: Configure CMake
3035
run: |

0 commit comments

Comments
 (0)