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:

./cuda_6.0.37_linux_64.run -extract=/your_path

 

Now we have three file :

  • cuda-linux64-rel-6.0.37-18176142.run
  • cuda-samples-linux-6.0.37-18176142.run
  • NVIDIA-Linux-x86_64-331.62.run (Ignore it)

Now we can install cuda.

sudo ./cuda-linux64-rel-6.0.37-18176142.run

Then we can install cuda-samples:

sudo ./cuda-samples-linux-6.0.37-18176142.run

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

cd /your/nvidia_sample_path
make

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 LD_LIBRARY_PATH=${CUDA_HOME}/lib64

PATH=${CUDA_HOME}/bin:${PATH}
export PATH

CUDA SDK Samples

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

$ cudainstallsamples6.5.sh  ~
$ 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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

You are commenting using your Google+ 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

ThuyDX

Just another WordPress.com site

Algunos Intereses de Abraham Zamudio Chauca

Matematica, Linux , Programacion Serial , Programacion Paralela (CPU - GPU) , Cluster de Computadores , Software Cientifico

josephdung

thoughts...

Tech_Raj

A great WordPress.com 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.

VentureBeat

News About Tech, Money and Innovation

Chetan Solanki

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

ScreenCrush

Explorer of Research #HEMBAD

managedCUDA

Explorer of Research #HEMBAD

siddheshsathe

A great WordPress.com site

Ari's

This is My Space so Dont Mess With IT !!

%d bloggers like this: