Tuesday 26 January 2016

How To install CUDA on Ubuntu 14.04 Trusty Tahr

Ubuntu-1404-CUDA
          Today, I am going to discuss about the installation of CUDA 6.5 Toolkit & Drivers on Ubuntu 14.04 (Trusty Tahr). From last few days a number of query regarding this problems are being asked. And Yes, Installation of CUDA Toolkit on Ubuntu 14.04 (Trusty Tahr) release is really a tough and challenging task. There are number of problems encountered during the installation of CUDA Toolkit. The installation on Ubuntu & Fedora systems have a lot of similarities. As both operating systems are based on different packages, so one need to understand the structuring & requirements of those packages to get task successfully done. I have already shared one post regarding installation of CUDA on Ubuntu 14.04 (Trusty Tahr). So lets check the Ubuntu installation process today.



Following are the basic components necessary to install CUDA SDK on Ubuntu 14.04 (Trusty Tahr).

  1. NVIDIA CUDA Enabled GPU Card.
  2. NVIDIA GPU Driver 
  3. CUDA Toolkit
  4. CUDA Software Development Kit 
          Check First Link to make sure that you have a CUDA enabled NVIDIA GPU Card already installed in your machine.
Check Second link to get to know about the drivers required for your GPU Card. Check Third link to get information about the latest CUDA Toolkit available in the market.Last not the least check Fourth link which guides you with some code samples in different application areas.

Follow these steps to get rid of all problems and ease the installation experience.
1) First Update Ubuntu 14.04 (Trusty Tahr) by using following command
 $ sudo apt-get update   

 $ sudo apt-get upgrade   

2) Verify the system has a CUDA-capable GPU.
 $ lspci | grep -i nvidia

3) Verify the system is running a supported version of Linux.
 $ uname -m && cat /etc/*release

4) Verify the system has gcc installed.
 $ gcc --version

5) Now Install the Repository Meta-Data by following command
 $ sudo apt-get install build-essential   

 $ sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb

 $ sudo apt-get update   
6) Install CUDA 6.5
 $ sudo apt-get install cuda   

          The setup is about 1GB and will ask for confirmation several times. Press 'y' when asked for confirmation. (Actual CUDA installation of libraries, runtime packages & Nsight eclipse edition)

7) Reboot system and you can start coding from Nsight eclipse edition.

         I hope after following these steps you will be able to complete installation of CUDA 6.5 on Ubuntu 14.04 (Trusty Tahr) without any errors. Please do comment in the comment box below if you face any problems. I will be glad to help you.

==>Posted By Yogesh B. Desai

Previous Post: How To install CUDA on Fedora 20
Next Post: Git Basics and Commands

6 comments:

  1. how to install cuda on ubuntu 10.04

    ReplyDelete
  2. Please try above mentioned steps and in case of any difficulty, comment it here.

    ReplyDelete
  3. After following all the above mentioned steps and rebooting the system enters in login loop. So what should we do?

    ReplyDelete
  4. Hi. It's hard to explain from your description of the error. Please mention the exact error you have faced in comment box here.

    You could contact me in case you have snapshot of your error; which may be helpful to advise you, to sort out the issue.

    ReplyDelete
  5. after following above steps i still cannot get the IDE when I search

    ReplyDelete