Ubuntu Install graphics driver +CUDA8+CUDNN

Source: Internet
Author: User

Ubuntu Install graphics driver

Viewing video card hardware information

Lspci | Grep-i Nvidia

Lspci | Grep-i VGA

View Driver Version Information

Nvidia-smi

P1:you appear to being running an X server; Please exit X before installing.

Sudo Service LIGHTDM Stop

p2:distribution-provided pre-install script failed Ubuntu

Do not ignore, continue to install;

P3:the Nouveau kernel driver is currently on use by your system

Https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver

Installing cuda8 Online Installation

Https://developer.nvidia.com/cuda-downloads

    1. ' Sudo dpkg-i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb '
    2. ' sudo apt-get update '
    3. ' sudo apt-get install Cuda '

Approximately 2 hours 2GB

Configuring Environment variables

Export Path=/usr/local/cuda/bin: $PATH

Export ld_library_path=/usr/local/cuda/lib64: $LD _library_path

Add to ~/.BASHRC file

SOURCE Activate

View Cuda version

Nvcc-v

Installing CUDNN

TAR-ZXVF cudnn-7.0-linux-x64-v3.0-prod.tgz

sudo cp cudnn/cuda/include/cudnn.h/usr/local/cuda/include

sudo cp cudnn/cuda/lib64/*/usr/local/cuda/lib64/

#下面的操作在 in the/usr/local/cuda/lib64/directory

sudo rm-rf libcudnn.so libcudnn.so.7.0# Delete two symbolic links;

sudo ln-s libcudnn.so.7.0.64 libcudnn.so.7.0

sudo ln-s libcudnn.so.7.0 libcudnn.so

Ubuntu Install graphics driver +CUDA8+CUDNN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.