Sunday, April 2, 2017

drivers - Cannot use CUDA, NVIDIA gpu is not detected, ubuntu 14.04

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 apt.



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?




Thanks

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...