I have ubuntu 14.04 and nvidia 660m. I have read several similar questions but non of them solved my problem. My problem is that either CUDA does not detect my gpu or I cannot login to ubuntu after reboot. Here's what I've done:
I used the xorg-edgers ppa to install the drivers via
sudo apt-get install nvidia-352
Then I downloaded the same driver version from nvidia website and installed it because I read that I need the nividia's
.run file to install cuda. Although it showed me that the pre-installation script failed, I forced it to install. And everything went fine and CUDA detected my gpu. (Without installing nvidia's .run file, CUDA fails to detect my gpu).
However, after rebooting, I could not pass the login screen any more.
To resolve it, I followed the instructions in this question (uninstalling the
.run file and uninstalling all nvidia drivers and reinstalling via ppa again) and I was able to login. However, now CUDA does not detect my gpu anymore. I tried reinstalling the
.run file and the same happens. I can use CUDA just before I reboot and after reboot, I can't login.
How can I make CUDA work with NVIDIA?