Something More for Research

Explorer of Research #HEMBAD

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 ?

  1. 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.
  2. Latest CUDA installation file (.run file, not .deb). You can download fromHERE .
  3. 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:

./ -extract=/your_path


Now we have three file :

  • (Ignore it)

Now we can install cuda.

sudo ./

Then we can install cuda-samples:

sudo ./

If you want you can compile the samples after installation. But this processmay take some time.

cd /your/nvidia_sample_path

Congratulations :)

Some proof:

With Deb File

CUDA Repository

Retrieve the CUDA repository package for Ubuntu 14.04 from the CUDA download site and install it in a terminal.

$ sudo dpkg i cudarepoubuntu1404_6.514_amd64.deb
$ sudo aptget update

CUDA Toolkit

Then you can install the CUDA Toolkit using apt-get.

$ sudo aptget install cuda

You should reboot the system afterwards and verify the driver installation with the nvidia-settings utility.

Environment Variables

As part of the CUDA environment, you should add the following in the .bashrc file of your home folder.

export CUDA_HOME=/usr/local/cuda6.5

export PATH

CUDA SDK Samples

Now you can copy the SDK samples into your home directory, and proceed with the build process.

$  ~
$ cd ~/NVIDIA_CUDA6.5_Samples
$ make

If everything goes well, you should be able to verify your CUDA installation by running thedeviceQuery sample in bin/x86_64/linux/release.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Extracts from a Personal Diary

dedicated to the life of a silent girl who eventually learnt to open up

Num3ri v 2.0

I miei numeri - seconda versione


Just another site

Abraham Zamudio [Matematico]

Matematica Aplicada, Linux ,Programacion Cientifica , HIgh Performance COmputing, APrendizaje Automatico




A great site

Travel tips

Travel tips

Experience the real life.....!!!

Shurwaat achi honi chahiye ...

Ronzii's Blog

Just your average geek's blog

Karan Jitendra Thakkar

Everything I think. Everything I do. Right here.

Chetan Solanki

Helpful to u, if u need it.....


Explorer of Research #HEMBAD


Explorer of Research #HEMBAD


A great site


This is My Space so Dont Mess With IT !!

%d bloggers like this: