Skip to content

Commit 05e643a

Browse files
committed
fast cuda install
1 parent 270324c commit 05e643a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/makefile.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,20 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-22.04
14-
14+
1515
steps:
1616
- name: Check out repository
1717
uses: actions/checkout@v3
18-
18+
1919
- name: Install CUDA and dependencies
2020
run: |
21-
# Add NVIDIA package repositories and key
22-
sudo apt-get update
23-
sudo apt-get install -y gnupg curl lsb-release
24-
curl https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin | sudo tee /etc/apt/preferences.d/cuda-repository-pin-600
25-
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pub | sudo tee /etc/apt/trusted.gpg.d/cuda.asc
21+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
22+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
2623
sudo apt-get update
27-
28-
# Install CUDA
29-
sudo apt-get install -y nvidia-cuda-toolkit
30-
24+
25+
# install CUDA toolkit
26+
sudo apt-get -y install cuda-toolkit-12-6
27+
3128
# Install other necessary dependencies like build-essential
3229
sudo apt-get install -y build-essential
3330

0 commit comments

Comments
 (0)