3

I am trying to install CUDA 7.0 on Ubuntu 14.04.2. I already tried everything suggested here and here. I have also tried many other tutorials, which mostly, say the same things.

The main problems when I try to install CUDA are:

  1. I get stuck on the login screen and nothing that I do can solve it. Already tried, among many other "solutions", this one.
  2. If I manage to install CUDA properly, Ubuntu freezes randomly and I am forced to shut it down or reinstall Ubuntu;

Can somebody please help me? I already reinstalled Ubuntu more than 5 times...

Thanks in advance,

4
  • What is your hardware configuration? Which graphics card do you have? Is your system is desktop, notebook or some kind of server? Have you installed nVidia drivers (in my experience most common source of hangs is Nouveau drivers)?
    – rutsky
    Jun 24, 2015 at 21:33
  • It is a notebook: Dell Vostro. GPU: GForce 760M. I did install all NVidia Drivers that are asked to, in the installation guide.
    – Gabs
    Jul 13, 2015 at 11:48
  • Which model of Dell Vostro do you have precisely? Does your notebook use nVidia optimus for switching between GPUs?
    – rutsky
    Jul 13, 2015 at 11:57
  • Notebook Vostro V14T-5470-A50
    – Gabs
    Jul 13, 2015 at 12:20

2 Answers 2

5

Found this floating around on the web:

Install wget:

sudo apt-get install wget

Change to the temp directory:

cd /tmp

Download CUDA 7.0 repository:

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb

Install CUDA repository:

sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb

Update the repository listings:

sudo apt-get update -y

Install CUDA 7.0:

sudo apt-get install cuda-toolkit-7-0 -y
1

If you followed the nvidia tutorial you probably installed the proprietary drivers. I haven't had much luck with those, so here is a solution using the modified drivers. Make sure to remove any nvidia drivers or cuda installation before following these instructions.

Install the drivers:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-XXX nvidia-prime

Restart your computer and make sure the drivers installed correctly. To check, install nvidia x server settings. If your gpu is found, this software will display information about your graphics card.

Next install the cuda toolkit from standard repository:

sudo apt-get install nvdia-cuda-toolkit

Then install the correct cuda library from the repository added earlier:

sudo apt-get install libcuda1-XXX
sudo add-apt-repository -r ppa:xorg-edgers/ppa

XXX in the above will depend on what graphics card you have (higher XXX means a newer driver). For me (I have an nvidia 970M) it was 346 (EDIT: this was the latest driver at the time, it's now 361. Most video cards will be compatible with the latest driver, but check the nvidia website to be safe).

Finally, try running deviceQuery (may have to run as sudo) to see if cuda is installed and finding your gpu.

2
  • Hi @Msquared! I tried the command "apt-get install nvidia-cuda-toolkit" and saw that the driver I've just installed which is working fine will be replaced by a different one. The result is cuda toolkit is installed but driver is lost
    – Shawn Le
    Jul 25, 2016 at 7:56
  • Yah, I've noticed cuda often likes to install the latest driver when you install it. For some reason when there isn't already a driver installed this doesn't seem to work as well, but I haven't had any problems with it when I had a driver already installed and then replaced by cuda. Just check the nvidia website to make sure you GPU is compatible with the driver being installed. If so you should be fine.
    – Msquared
    Jul 25, 2016 at 13:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .