How to install cuda10.1 driver in Ubuntu

**1. Download cuda10.1: **

Nvidia official website link: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=runfilelocal

2. Installation 10.1:

[Note]: cuda8.0, cuda9.0, cuda10 all integrate nvidia graphics driver. According to whether the graphics driver is installed at the same time as cuda is installed, it can be divided into installation method without driver and installation method with driver.

The installation method without driver is used here, because the latest nvidia graphics card driver has been successfully installed in the front;

Execute the following command

sudo sh cuda_10.1.168_418.67_linux.run

Enter accept

Select the installation option: do not select the driver,

or:

Then press the Enter key with the corner of a book until the terms of service display to 100%. Then select according to the following steps:

accept

n (don't install driver)

y

y

y

Set cuda environment variables

Enter sudo gedit ~/.bashrc to open the .bashrc file in the home directory and add the following path:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.1/lib64
export PATH=$PATH:/usr/local/cuda-10.1/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.1

Terminal operation: source ~/.bashrc to make it effective;

Check whether the installation is successful:

Enter nvcc -version, if the following text is displayed, the installation is successful:

Reference article:

  1. https://blog.csdn.net/wanzhen4330/article/details/81699769

Recommended Posts

How to install cuda10.1 driver in Ubuntu
How to install Helm in Ubuntu
How to install mysql in Ubuntu 14.04
How to install mysql in Ubuntu 14.04
How to install ROS Noetic in Ubuntu20.04
How to install Ubuntu20.04 and install NVIDIA driver
How to install python in ubuntu server environment
How to install Hadoop in standalone mode on Ubuntu 18.04
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to use hanlp in ubuntu
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install PHP7.4 in CentOS
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install PrestaShop on Ubuntu 16.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install KVM on Ubuntu 20.04
How to install opencv3.0.0 on ubuntu14.04
How to install Anaconda on Ubuntu 20.04
How to install Prometheus on Ubuntu 16.04
How to install Jenkins on Ubuntu 18.04
How to install Apache on Ubuntu 20.04
How to install R on Ubuntu 20.04
How to install HDP2.6 in Centos7.2
How to install Moodle on Ubuntu 16.04
How to install Solr 5.2.1 on Ubuntu 14.04
How to install Teamviewer on Ubuntu 16.04
How to install MariaDB on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Mono on Ubuntu 20.04
How to install Go on Ubuntu 20.04
How to install Zoom on Ubuntu 20.04
How to install Nginx on Ubuntu 16.04
How to install OpenCV on Ubuntu 20.04
How to install Spotify on Ubuntu 20.04
How to install Postman on Ubuntu 18.04
How to install Go 1.6 on Ubuntu 16.04
How to install Go on Ubuntu 18.04
How to install MySQL on Ubuntu 14.04