nouveauの無効化
cd etc/modprobe.d/
touch blacklist-nouveau.conf
blacklist-nouveau.conf
に以下の2行を記述
blacklist nouveau
options nouveau modeset=0
再読み込み & 再起動
sudo update-initramfs -u
reboot
CUDA10.1リポジトリの導入
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.1.105-1_amd64.deb
CUDA10.1リポジトリのインストール
sudo apt install ./cuda-repo-ubuntu1804_10.1.105-1_amd64.deb
パプリックGPGキーの取得
上記コマンドからsudo apt-key adv --fetch-keys...
を叩く
The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/comput
リポジトリのアプデ
sudo apt update
機械学習リポジトリの導入
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt update
インストール可能nvidia-driverの確認
ubuntu-drivers devices
特定のnvidia-driverのインストール
sudo apt install nvidia-418