0

I've been attempting to use caffe on my laptop and have been having problems installing the nvidia drivers (needed for the CUDA toolkit).

Unfortunately after switching to nvidia drivers in the "additional drivers" menu and rebooting, I get a black screen. I can still open the tty, however none of the solutions posted online have actually worked. (Most of them weren't even accepted by the OP too.)

Supposedly what I am supposed to do is install bumblebee, which installs fine without breaking ubuntu, but according to other threads here the proprietary nvidia drivers are needed to use cuda.

What am I doing wrong here?

3 Answers3

0

For machines with Optimus switchable graphics, the command line argument to use when installing the driver is "--no-opengl-files" (not "--no-opengl-libs"). e.g.:

sudo sh NVIDIA-Linux-x86_64-410.78.run --no-opengl-files
AusMatt
  • 11
0

Probably you forgot first before installation of nvidia-packages to export some variables to the library of CUDA.

On desktop in terminal one first needs to do:

export PATH=${PATH}:/usr/local/cuda/bin

and on 32-bit-machines this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-current:/usr/lib32/nvidia- current

but on 64-bit-machines this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib:/usr/local/cuda/lib64

The rest is explained here in a contribution of me, but this concerns a different package of nvidia, but in the end anyway you need above all to export as described above... :

How can I Install Nvidia Driver GT 520 and Cuda 5.0 in Ubuntu13.04?

dschinn1001
  • 3,863
0

My issue was that I was a,) not blacklisting nouveau correctly (probably not rebooting after blacklisting. I should read the docs better.)

In addition, the main culprit was that I did not set --no-opengl-libs. Since my machine has a switchable graphics card, having the runfile install them is apparently screwy. IDK why though.