I forgot my configuration once. It's really sad to try again now... 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-devlibxi-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_edacblacklist vga16fbblacklist nouveaublacklist rivafbblacklist nvidiafbblacklist rivatv
5. Press Ctrl + Alt + F1 and install it after login.
sudo service lightdm stopchmod +x cuda_5.5.22_linux_64.runsudo ./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/binexport 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
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
==================
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.cnblogs.com/Ponys/p/3438491.html
If you are interested, please follow your blog and Weibo Rachel ____ Zhang
PS: the new verification code function of CSDN is good. You can't see it clearly! I tried it 6 times before sending it out...