Installation of CUDA10.0 and problems in Ubuntu

Installation of CUDA10.0 and problems in Ubuntu

The correspondence between tensorflow version and cuda and cudnn:

https://tensorflow.google.cn/install/source

When installing, be sure to check the Driver Version under Linux required by CUDA. The link is as follows:

https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

The additional drivers include the graphics card driver used by this machine.

The message "Incomplete installation!" appears. You don't need to worry about it. The CUDA driver is not installed, but the graphics driver has been selected before. The command to uninstall CUDA is also mentioned, as shown in the afternoon.

Add three paths in the user bashrc file.

sudo gedit ~/.bashrc 

Remember to add: source ~/.bashrc

Test whether CUDA is installed successfully. Enter the command in the terminal: nvcc -V

After success, the following is displayed:

But it was found that the installation was not successful, and the graphics card driver version

Execute a program in one of the samples to test it:

cd /usr/local/cuda-10.0/samples/1_Utilities/deviceQuery

sudo make

./deviceQuery

The CUDA driver version does not correspond to the CUDA acceleration version, that is, the driver version I use is inconsistent with the version required by the downloaded CUDA10.0.

The file I downloaded is called cuda_10.0.130_410.48_linux.run and the graphics driver version under my Linux is 384.

I will not continue to upgrade the graphics driver here, because randomly upgrading the Linux graphics driver may cause display failure. This failed experience ends here.

Write down the method of uninstalling cuda:

Uninstall software location: usr/local/cuda-10.0/bin

The file name is: uninstall_cuda_10.0.pl

Enter the following command directly in the terminal:

sudo /usr/local/cuda-10.0/bin/uninstall_cuda_10.0.pl

After uninstallation, delete the remaining CUDA directories.

choose a responding cudnn version:
https://developer.nvidia.com/rdp/cudnn-archive

Reference article: https://blog.csdn.net/weixin_40702638/article/details/83304415

This is the end of this article about installing CUDA10.0 in Ubuntu and its problems. For more information about installing CUDA10.0 in Ubuntu, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed solution to the problem of "Unable to start the program, the system cannot find the specified file" when writing C program or CUDA program in VS2019
  • Detailed configuration of win10+VS2017+Cuda10.0 environment
  • Detailed explanation of the correspondence between different Tensorflow version requirements and CUDA and CUDNN versions
  • Implementation of installing and uninstalling CUDA and CUDNN in Ubuntu
  • Detailed tutorial on installing CUDA9.0 on Ubuntu16.04
  • Steps to install cuda10.1 on Ubuntu 20.04 (graphic tutorial)
  • Ubuntu 20.04 CUDA & cuDNN Installation Method (Graphical Tutorial)
  • Manjaro installation CUDA implementation tutorial analysis

<<:  How to query date and time in mysql

>>:  JavaScript to implement the aircraft war game

Recommend

The best solution for resetting the root password of MySQL 8.0.23

This method was edited on February 7, 2021. The v...

Understand CSS3 Grid layout in 10 minutes

Basic Introduction In the previous article, we in...

MySQL data archiving tool mysql_archiver detailed explanation

Table of contents I. Overview 2. pt-archiver main...

Win10 + Ubuntu 16.04 dual system perfect installation tutorial [detailed]

Be sure to remember to back up your data, it is p...

In-depth explanation of iterators in ECMAScript

Table of contents Preface Earlier iterations Iter...

Nginx server https configuration method example

Linux: Linux version 3.10.0-123.9.3.el7.x86_64 Ng...

Details of using vue activated in child components

Page: base: <template> <div class="...

Getting Started Tutorial for Beginners ④: How to bind subdirectories

To understand what this means, we must first know ...

Detailed explanation of GaussDB for MySQL performance optimization

Table of contents background Inspiration comes fr...

...

Based on JavaScript ES new features let and const keywords

Table of contents 1. let keyword 1.1 Basic Usage ...

How to use CSS media query aspect-ratio less

CSS media query has a very convenient aspect rati...

Using JS to determine the existence of elements in an array in ten minutes

Preface In front-end development, you often need ...

Implementation of CentOS8.0 network configuration

1. Differences in network configuration between C...

Detailed explanation of JS browser event model

Table of contents What is an event A Simple Examp...