Ubuntu12.04 configure NVIDIACUDA5.5 real-time recording

Source: Internet
Author: User
Now configure NVIDIACUDA5.5 in Ubuntu12.04 again. Please refer to the website for reference. Environment: Ubuntu12.04 + Cuda5.51. installation environment: ThesetupofCUDAdevelopmenttoolsonasystemrunningtheappropriateversionofLinuxconsistsofafewsim

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 http://www.linuxidc.com/linux/2014-06/103056.htm in Ubuntu 12.04

Ubuntu 12.04 install CUDA-5.5 http://www.linuxidc.com/Linux/2013-10/91101.htm

Install CUDA Development Environment http://www.linuxidc.com/Linux/2012-04/58913.htm on Ubuntu 11.10

Configuration of CUDA environment http://www.linuxidc.com/Linux/2011-12/49874.htm in Fedora 15 System

Install nvidia cuda 11.04 RC2 http://www.linuxidc.com/Linux/2011-10/46304.htm in Ubuntu 4.0

Linux Mint 13/Ubuntu 12.04 configure CUDA 4.2 & OpenCV 2.4.2 method http://www.linuxidc.com/Linux/2013-10/91102.htm

CUDA getting started tutorial http://www.linuxidc.com/Linux/2014-07/104328.htm

-------------------------------------- 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 !!!) Http://www.linuxidc.com/Linux/2014-10/107503.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-10/107502.htm

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.