Installing CUDA unistall proper NVIDIA drivers, when I fix it, Nsight is not able to find NVIDIA any


We have:

  • Ubuntu 15.04
  • NVIDIA GeForce 8400 GS, driver: 340.93

When we install CUDA, is overwrites the NVIDIA drivers, but when we fix the proper drivers, Nsight cannot detect NVIDIA anymore.

Basically, we are:

  • downloading the .deb from CUDA developer Zone, we have tried versions (6.0, 6.5, 7.0 and 7.5)
  • installing it
  • rebooting

when it starts again we face “randomly” two problems:

(1) - a loop in the login screen
(2) - a problem in the resolution, stuck in 4:3

If we do:


sudo apt-get purge nvidia* sudo apt-get install nvidia-340

It is gonna be forever in case (1), I don’t know how to fix.

If we just do:

sudo apt-get install nvidia-340 ... reboot

it works fine, we can start our computer again and the resolution is just fine, we can login properly, but when we try to run our code in Nsight:

no-cuda compatible devices detected

is displayed in the Nsight settings.

The env path variables are properly pointing to libcuda64 and so on…

Does any one have an idea about that?

I’m very glad about your attention.

PS: we are setting the NVIDIA driver in [System Settings > Software & Updates > Additional Driver] to the version 340.93 (proprietary, tested) after reboot

GeForce 8400 GS looks like it is a compute 1.1 device. (pretty old)

That means the latest driver you can use with it is a 340.xx or 343.xx driver.

The latest CUDA toolkit you can use is 6.5. And CUDA toolkit 6.5 does not officially support Ubuntu 15.04.

Are you using the 8400 GS for display also? Are there any other GPUs involved such as intel graphics on the motherboard? If you have intel graphics, is your display being driven from the motherboard or from the 8400 GS ?