Last active
August 9, 2021 19:40
-
-
Save danielsnider/7d6f26959b749b026721fe82b90f5cc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Official docs: https://docs.nvidia.com/datacenter/dcgm/latest/dcgm-user-guide/getting-started.html | |
set -v | |
set -e | |
architecture=x86_64 | |
distribution=ubuntu2004 | |
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/$distribution/$architecture /" | sudo tee /etc/apt/sources.list.d/cuda.list | |
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$distribution/$architecture/7fa2af80.pub | |
wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/$architecture/cuda-$distribution.pin | |
sudo mv cuda-$distribution.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
sudo apt-get update | |
sudo apt-get install -y datacenter-gpu-manager | |
sudo systemctl --now enable nvidia-dcgm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment