Install NVIDIA CUDA5.5 in Ubuntu 12.04

Source: Internet
Author: User
Tags theano linux mint

Install NVIDIA CUDA5.5 in Ubuntu 12.04

Now you can re-configure NVIDIA CUDA5.5 in Ubuntu 12.04. Please refer to the website for reference.

Environment: Ubuntu 12.04 + Cuda5.5

1. Determine the installation environment:

  • The setup of CUDA development tools on a system running the appropriate version of Linux consists of a few simple steps:
  • Verify the system has a CUDA-capable GPU.
  • Verify the system has a supported version of Linux.
  • Verify the system has gcc installed.

See the official configuration Manual: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html

2. Download the image:

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

Run now

3. install necessary Libraries

Sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev
Libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

4. Delete existing nvidia and blacklist

Sudo apt-get remove -- purge nvidia *
Sudo nano/etc/modprobe. d/blacklist. conf

Add blacklist. conf

Lacklist amd76x_edac
Blacklist vga16fb
Blacklist nouveau
Blacklist rivafb
Blacklist nvidiafb
Blacklist rivatv

-------------------------------------- Split line --------------------------------------

CUDA programming in Ubuntu 12.04

Ubuntu 12.04 installation CUDA-5.5

Install the CUDA Development Environment on Ubuntu 11.10

Configure the CUDA environment in the 15 ora 15 System

Install nvidia cuda 11.04 RC2 in Ubuntu 4.0

Configure CUDA 12.04 & OpenCV 2.4.2 in Linux Mint 13/Ubuntu 4.2

CUDA getting started

-------------------------------------- Split line --------------------------------------

5. Press Ctrl + Alt + F1 and install it after login.

Sudo service lightdm stop
Chmod + x cuda_5.5.22_linux_64.run
Sudo./cuda_5.5.22_linux_64.run

Cuda5.5 integrates toolkit, sdk, and driver, so it is okay to agree to it all the way during installation.

6. The following installation result is displayed:

Driver: Installed

Toolkit: installeds In/Usr/Local/Cuda-5.0

Samples: Installation Failed. Missing Required Libraries.

That is, the SDK fails to be installed. The solution is also mentioned in this official manual.

7. Install SDK separately

Decompress the sdk:

Sh cuda_5.5.22_linux_64.run-extract =/path/to/extract/dir/

To the root directory/path/to/extract/dir/to find the cuda-samples_5.5.22 _ *******. run, install

Sh cuda-samples_5.5.22 _ *******. run

8. Path Configuration:

$ Sudo gedit etc/profile or ~ /. Bashrc

Export PATH = $ PATH:/usr/local/cuda-5.5/bin
Export LD_LIBRARY_PATH =/usr/local/cuda-5.5/lib64:/lib

Make it take effect:

Source/etc/profile (corresponding to profile) or sudo ldconfig (corresponding to bashrc)

There is also a way to install sdk see http://askubuntu.com/questions/338907/how-to-install-cuda-5-5-under-ubuntu-12-04-lts-64-bit

9. Verify

See Official http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html#verify-installation

Nvcc-V:

DeviceQuery:

10. Cuda Hello World:

Https://devtalk.nvidia.com/default/topic/486692/cuda-programming-and-performance/guide-installing-cuda-sdk-on-linux-walkthrough-on-how-to-install-the-cuda-sdk-and-build-the-example/

Bottom of the text

11. Complete theano configuration ~ /. Theanorc configure GPU

Sudo vim ~ /. Theanorc

Write

[Global]

FloatX = float32

Device = gpu

Testing: http://deeplearning.net/software/theano/tutorial/using_gpu.html#testing-theano-with-gpu

Additional configuration references are attached:

1. theano + python Module

(Python is not installed in Ubuntu 12.04, but many modules in the system depend on python. Do not delete them unless necessary !!!)

  • 1
  • 2
  • Next Page

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.