Skip to content

Commit

Permalink
Merge pull request #43 from physarumAdv/cuda_11_2_workflow
Browse files Browse the repository at this point in the history
Added Cuda 11.2 build workflow
  • Loading branch information
pavtiger authored Jan 24, 2021
2 parents f1af875 + add2309 commit f4dc1c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04]
cuda: ["11.1", "11.0", "10.2", "10.1", "10.0"]
cuda: ["11.2", "11.1", "11.0", "10.2", "10.1", "10.0"]
gcc: [8, 7, 6]
exclude:
# Cuda 10.0 doesn't support Ubuntu 20.04
Expand Down
15 changes: 15 additions & 0 deletions scripts/actions/install_cuda_11.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e

UBUNTU_VERSION="$(lsb_release -sr)"
UBUNTU_VERSION="${UBUNTU_VERSION//.}"

wget -q "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$UBUNTU_VERSION/x86_64/cuda-ubuntu$UBUNTU_VERSION.pin" -O cuda.pin
sudo mv cuda.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget -q "http://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda-repo-ubuntu$UBUNTU_VERSION-11-2-local_11.2.0-460.27.04-1_amd64.deb" -O cuda-repo.deb
sudo dpkg -i cuda-repo.deb
sudo apt-key add "/var/cuda-repo-ubuntu$UBUNTU_VERSION-11-2-local/7fa2af80.pub"
sudo apt update
sudo apt -y install cuda-{compiler,libraries{,-dev}}-11-2

/usr/local/cuda-11.2/bin/nvcc -V

0 comments on commit f4dc1c9

Please sign in to comment.