-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSetup_CUDA
More file actions
26 lines (21 loc) · 1.22 KB
/
Setup_CUDA
File metadata and controls
26 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Nvidia GPU software for computation
# Use your package manager to install "third-party drivers" and update to latest that
# your card can handle
# See https://docs.nvidia.com/hpc-sdk/index.html for Nvidia install instructions
# An older set of instructions are in the CUDA installation guide at
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/.
# You should use your system’s package manager where possible.
sudo wget --no-verbose https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-20-9_20.9_amd64.deb
sudo wget --no-verbose https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-2020_20.9_amd64.deb
sudo DEBIAN_FRONTEND=noninteractive \
apt-get install -y ./nvhpc-20-9_20.9_amd64.deb ./nvhpc-2020_20.9_amd64.deb
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
export NVARCH=Linux_x86_64
export NVCOMPILERS=/opt/nvidia/hpc_sdk
export MANPATH=$MANPATH:$NVCOMPILERS/$NVARCH/20.9/compilers/man
export PATH=$NVCOMPILERS/$NVARCH/20.9/compilers/bin:$PATH
#Put these in your dotfiles:
echo "export NVARCH=`uname -s`_`uname -m`"
echo "export NVCOMPILERS=/opt/nvidia/hpc_sdk"
echo "export MANPATH=$MANPATH:$NVCOMPILERS/$NVARCH/20.9/compilers/man"
echo "export PATH=$NVCOMPILERS/$NVARCH/20.9/compilers/bin:$PATH"