Ubuntu 14.04 Installation CUDA problem and solution

Source: Internet
Author: User

This article installs the environment:

-Dual Graphics: Intel set + NVIDIA single display

-Ubuntu 14.04.4

-CUDA 8.0.44

1. The Deb installation package is a pit ( don't use this method!) )

With the DEB installation package Cuda-repo-ubuntu1404-8-0-local_8.0.44-1_amd64.deb, after the installation is complete, the reboot appears with a black screen,

-resolution after a black screen appears:

(1) Ctrl + Alt + F1 into command line mode, root login, execute command,

# apt-get Remove--purge nvidia*//Uninstall all installed Nvidia components

# Apt-get Autoremove

# reboot

To solve this problem, after a variety of tossing ...

1) completely uninstall NVIDIA related installation, re-use the system comes with the software Update installed Nvidia driver, not black screen, but the login interface loop can not enter

2) refer to the relevant blog online, said Ubuntu 14.04 installation can not be updated, or will appear black screen or circular landing interface problems, think I installed is Ubuntu 14.04.4, compared to 14.04.3 have more updates, Kernel also upgraded to 4.0 ... Sweat...... It turns out that this conclusion is nonsense (here is to say that many blogs on the web may be effective against bloggers ' own machines, but if not a common method, write out the real Hairenbujian. Almost let me re-install the system ... )

3) ...

Problems that cannot be resolved. The root cause is that Deb defaults to overwriting Intel's set of OpenGL Lib, causing problems with the GUI. The NVIDIA documentation gives the following explanations,

2. Install with Runfile

Use the Runfile file Cuda_8.0.44_linux_ubuntu_14.04.run before installing the system to bring the NVIDIA graphics card driver Nouveau off,

1) Create file/etc/modprobe.d/blacklist-nouveau.conf Add the following content,

Blacklist nouveau
Options Nouveau modeset=0

2) Regenerate kernel Initramfs

$ sudo update-initramfs-u

3) Reboot the system, Ctrl + Alt + F1 into command line mode, execute,

$ sudo service LIGHTDM stop//Turn off desktop Services

$ sudo./cuda_8.0.44_linux_ubuntu_14.04.run --no-opengl-libs

$ sudo service LIGHTDM start//Restart desktop service

4) Since the machine uses Intel set as display card, and Nvidia is only as a CUDA computing card, there is no need to create and modify the/etc/x11/xorg.conf file. Verify the installation,

$ cat/proc/driver/nvidia/version

$ nvcc-v

5) for Ubuntu systems,/dev/nvidia* related files are created automatically when CUDA is first used, without the need to run command generation manually.

Finish.

Ubuntu 14.04 Installation CUDA problem and solution

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.