Skip to content

Commit c61a658

Browse files
zeroecconuke-web3
andauthored
BM-205: add the nvidia repo to toolkit installer (github#40)
Co-authored-by: Nuke <[email protected]>
1 parent 6cdfeab commit c61a658

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

lychee.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ max_retries = 3
1010
require_https = true
1111

1212
exclude = [
13+
# Flakey
14+
"etherscan.io",
1315
# priv org
14-
"https://github.com/boundless-xyz/*",
16+
"github.com/boundless-xyz",
1517
]

scripts/setup.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,15 @@ install_cuda() {
138138
if dpkg -l | grep -q "^ii cuda-toolkit"; then
139139
info "CUDA Toolkit is already installed. Skipping CUDA installation."
140140
else
141-
info "Installing CUDA Toolkit..."
141+
info "Installing CUDA Toolkit and dependencies..."
142142
{
143+
local distribution
144+
distribution=$(grep '^ID=' /etc/os-release | cut -d'=' -f2 | tr -d '"')$(grep '^VERSION_ID=' /etc/os-release | cut -d'=' -f2 | tr -d '"'| tr -d '\.')
145+
info "Installing Nvidia CUDA keyring and repo"
146+
wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/$(/usr/bin/uname -m)/cuda-keyring_1.1-1_all.deb
147+
dpkg -i cuda-keyring_1.1-1_all.deb
148+
rm cuda-keyring_1.1-1_all.deb
149+
apt-get update
143150
apt-get install -y cuda-toolkit
144151
} >> "$LOG_FILE" 2>&1
145152
success "CUDA Toolkit installed successfully."

0 commit comments

Comments
 (0)