-1

I'm currently trying to install cuda on my ubuntu 14.04. I downloaded cuda run file from nvidia: https://developer.nvidia.com/cuda-downloads?sid=908551

But i get the following error:

enter image description here

EDIT: settings->software&updates->additional drivers the options are all grayed out: enter image description here

JayC
  • 73

1 Answers1

3

For installing cuda 1st you need to install nvidia driver as for best scenario use propitiatory nvidia driver which are in settings >> software and updates >> Additional driver.

And select nvidia 343 or nvidia 346 driver but not the lower version as for cuda.

After when you install the propitiatory driver reboot the system and install

sudo apt-get install nvidia-346-uvm or

sudo apt-get install nvidia-343-uvm or

sudo apt-get install nvidia-346-updates-uvm or

sudo apt-get install nvidia-343-updates-uvm

According to the driver you've installed and then create an alias for that uvm in blaclist files for nouveau driver by

alias nvidia-346-uvm or whichever you have installed

then update the initramfs by

sudo update-initramfs -u

then reboot and run

sudo modeprobe nvidia-343-uvm to load nvidia kernel module and then

retry to install your cuda

Gaurav
  • 143
  • Seems you missed alot of steps according too this post http://askubuntu.com/questions/451672/installing-and-testing-cuda-in-ubuntu-14-04 Did you test this or paste it from another site ? – Mark Kirby Aug 04 '15 at 07:55
  • i'd install cuda 7 using nvidia-346-updates driver in ubuntu 15.04 3.19.0-25-generic just the additional steps may be the /etc/modprobe.d/blacklist.conf file in which alias to be edited.And the work is done. – Gaurav Aug 04 '15 at 09:01
  • And as the link you have mentioned it seems to me that that guy build the nvidia kernel module from run file which takes lots of time and sometime result in failure as this is shortcut and provide best solution in minimum time. – Gaurav Aug 04 '15 at 09:06
  • Thats fine, I was more thinking, you could of just pasted it from a website with no knowledge of the subject, or consequences, your response was solid so +1 – Mark Kirby Aug 04 '15 at 09:08
  • actually it's my personal experience fro setting dual monitor setup using bumblebee, nvidia and cuda. – Gaurav Aug 04 '15 at 09:30
  • Yes, thats what I mean, you seem to know what you are talking about, so no worries – Mark Kirby Aug 04 '15 at 09:31
  • I went to settings >> software and updates >> Additional driver but everything is grayed out. I uploaded the image on my post.

    In addition, I already installed a nvidia driver for my computer with instructions posted on this stackoverflow link: http://askubuntu.com/questions/451221/ubuntu-14-04-install-nvidia-driver (the second answer)

    So the only thing i want to install is cuda. is that possible?

    – JayC Aug 04 '15 at 14:30
  • first remove the manually installed nvidia driver by

    sudo apt-get remove nvidia*&&sudo apt-get purge nvidia-*

    and also delete the blacklist configuration you have created

    then reboot now follow the procedure, install the nvidia-346-updates driver only and if stuck somewhere comment i help you out.

    – Gaurav Aug 04 '15 at 14:40
  • alias nvidia-346-uvm :

    this keeps telling me that nvidia-346-uvm is not found

    – JayC Aug 04 '15 at 15:31
  • which nvidia driver you have installed – Gaurav Aug 04 '15 at 15:43
  • i installed nvidia-346-uvm. settings >> software and updates >> Additional driver, they are not grayed out anymore – JayC Aug 04 '15 at 15:43
  • no means driver from additional driver in settings – Gaurav Aug 04 '15 at 15:44
  • umm so i rebooted ubuntu, and now im getting an error when i run deviceQuery : cudaGetDeviceCount returned 30 – JayC Aug 04 '15 at 17:15
  • nvm you need to run with sudo – JayC Aug 04 '15 at 17:18
  • just run sudo modprobe nvidia-346-uvm and then do whatever you wanna and also to run program in nsight eclipse you need to run sudo nsight-eclipse – Gaurav Aug 05 '15 at 05:00