CUDA 6/6.5 on Ubuntu
The following explains how to install CUDA Toolkit 6.5 on 64-bit Ubuntu 12.04 Linux. I have tested it on a self-assembled desktop with NVIDIA GeForce GTX graphics card. The instruction assumes you have the necessary CUDA compatible hardware support. Depending on your system configuration, your mileage may vary.
What do we need ?
- Latest GPU driver from NVIDIA for your GPU and please install it. You can find many tutorial for this. Instead of using the restricted driver, I chose touse the new version from NVIDIA. In this guide I use NVIDIA 334.21 drivers for my GTX 750 Ti and GTX 650 Ti Boost.
- Latest CUDA installation file (.run file, not .deb). You can download fromHERE .
- Required libraries:freeglut3-dev,libglu1-mesa-dev,libxmu-dev,libxi-dev, build-essential.
sudo apt-get install build-essential freeglut3-dev libglu1-mesa-dev libxmu-dev libxi-dev
more detail try this link –>
With Run File
Extract installation file from CUDA .run file:
Now we have three file :
- NVIDIA-Linux-x86_64-331.62.run (Ignore it)
Now we can install cuda.
Then we can install cuda-samples:
If you want you can compile the samples after installation. But this processmay take some time.
With Deb File
Retrieve the CUDA repository package for Ubuntu 14.04 from the CUDA download site and install it in a terminal.
Then you can install the CUDA Toolkit using apt-get.
You should reboot the system afterwards and verify the driver installation with the nvidia-settings utility.
As part of the CUDA environment, you should add the following in the .bashrc file of your home folder.
Now you can copy the SDK samples into your home directory, and proceed with the build process.
If everything goes well, you should be able to verify your CUDA installation by running thedeviceQuery sample in bin/x86_64/linux/release.