Last active
October 24, 2018 19:21
-
-
Save felipendc/5277a53266437e5e7d1c46a69c117e40 to your computer and use it in GitHub Desktop.
How to install Nvidia drivers on ubuntu 410
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
How to install Nvidia drivers on ubuntu 410 | |
https://askubuntu.com/questions/1077061/how-do-i-install-nvidia-and-cuda-drivers-into-ubuntu | |
Ubuntu 18.04, CUDA 10.0 and NVIDIA 410 drivers: | |
NOTE: CUDA 9.x is not available through NVIDIA's ubuntu1804 repo. | |
These instructions are for installing CUDA through the repository instead of the .deb installation. | |
The following lines you can copy and paste to a terminal window. Press Ctrl+Alt+T to open a terminal window. | |
Remove any CUDA PPAs that may be setup and also remove the nvidia-cuda-toolkit if installed: | |
sudo rm /etc/apt/sources.list.d/cuda* | |
sudo apt remove nvidia-cuda-toolkit | |
Recommended to also remove all NVIDIA drivers before installing new drivers: | |
sudo apt remove nvidia-* | |
Then update the system: | |
sudo apt update | |
Install the key: | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | |
Add the repo: | |
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list' | |
Update the system again: | |
sudo apt update | |
If you only want the NVIDIA 410 driver run, if not, skip this step: | |
sudo apt install nvidia-driver-410 | |
Install CUDA 10.0. | |
sudo apt install cuda-10-0 | |
It should be installing the nvidia-410 drivers with it as those are what are listed in the repo. See: http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ | |
Add the following lines to your ~/.profile file for CUDA 10.0 | |
# set PATH for cuda 10.0 installation | |
if [ -d "/usr/local/cuda-10.0/bin/" ]; then | |
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
fi | |
Reboot the computer and check your settings when reboot is complete: | |
Check NVIDIA Cuda Compiler with nvcc --version: | |
terrance@terrance-ubuntu:~$ nvcc --version | |
nvcc: NVIDIA (R) Cuda compiler driver | |
Copyright (c) 2005-2018 NVIDIA Corporation | |
Built on Sat_Aug_25_21:08:01_CDT_2018 | |
Cuda compilation tools, release 10.0, V10.0.130 | |
Check NVIDIA driver with nvidia-smi: | |
terrance@terrance-ubuntu:~$ nvidia-smi | |
Thu Sep 20 10:31:17 2018 | |
+-----------------------------------------------------------------------------+ | |
| NVIDIA-SMI 410.48 Driver Version: 410.48 | | |
|-------------------------------+----------------------+----------------------+ | |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | |
|===============================+======================+======================| | |
| 0 GeForce GTX 760 Off | 00000000:02:00.0 N/A | N/A | | |
| 43% 34C P8 N/A / N/A | 119MiB / 1998MiB | N/A Default | | |
+-------------------------------+----------------------+----------------------+ | |
+-----------------------------------------------------------------------------+ | |
| Processes: GPU Memory | | |
| GPU PID Type Process name Usage | | |
|=============================================================================| | |
| 0 Not Supported | | |
+-----------------------------------------------------------------------------+ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment