Cuda

youtube

 * On Ubuntu 16.04 LTE select kernel 4.4.115(drop to 4.4.0 if this doesn't work) with Ukuu kernel selection tool.  Kernel 4.13 works only on some motherboards, it isn't stable enough.  See  devtalk nvidia cuda 9 fail ubuntu 16.04 with kernel 4.4.13
 * Better option is to use Lubuntu 14.04
 * Nvidia fan control Set the fixed fan speed of all the cards.

After installing 4.4.115, select it from the advanced tab of grub on startup. sudo uname -r #this will list all your kernels sudo apt-get purge linux-image-4.13.0-26-generic # only 4.4.115 remains sudo apt-get purge linux-headers-4.13.0-26-generic sudo update-initramsfs -u reboot


 * https://www.youtube.com/watch?v=_fj4YISX3bw Interwebaesth tutorial on cuda install
 * interwebaesthetics.com Nvidia CUDA Toolkit driver Install Ubuntu Mint 16 04
 * https://interwebaesthetics.com/ubuntu-mint-install-nvidia-drivers-2017/      Booting to blank screen and don’t even get to the log in page?  Try this…   Press “e” at grub menu to edit the boot options. (adding “nomodeset” to your grub boot options right after “quiet splash”near the bottom line will help you). Sometimes after updating your OS you will need to repeat this process minus the whole blacklisting the drivers part.

Linux mint users need to run the command “sudo service mdm stop” in place of “sudo service lightdm stop”. With some mboards, it won't even boot up with gtx1070's installed. It either endlessly reboots, boots to bios or black screen or insists that no keyboard is installed. Remove gtxs and use onboard display driver, then blacklist under modprobe.d. Then poweroff and reinsert gtx1070s. The

cd ~/Downloads

wget -nc https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run #for ubuntu 16.04 gtx1070 etc series.

Press Ctrl+Alt+F4 at log-in screen (type in user-name and password into command line)

sudo nano /etc/modprobe.d/blacklist.conf blacklist amd76x_edac blacklist vga16fb blacklist nouveau blacklist rivafb blacklist nvidiafb blacklist rivatv sudo apt-get remove --purge nvidia* sudo service lightdm stop cd ~/Downloads chmod +x cuda_8.0.61_375.26_linux.run sudo ./cuda_8.0.61_375.26_linux.run  #follow prompts

after installing run these commands:

export PATH=$PATH:/usr/local/cuda-8.0/bin sudo echo '/usr/local/cuda-8.0/bin' >> /etc/ld.so.conf #or edit with nano sudo ldconfig reboot

LD_LIBRARY_PATH gets /usr/local/cuda-8.0/bin

https://askubuntu.com/questions/481414/install-nvidia-driver-instead-of-nouveau If you still get the error related to nouveau drivers then you are probably required to update the initramfs, which might be configured to load the nouveau drivers. Don't reboot or poweroff, run this command to update the initramfs disk.

sudo update-initramfs -u then reboot and repeat these steps:
 * Ctrl+alt f4
 * sudo service lightdm stop  #sudo /etc/init.d/gdm stop on older systems
 * sudo ./cuda_8.0.61_375.26_linux.run    #run the driver package again.

apt install
http://www.pradeepadiga.me/blog/2017/03/22/installing-cuda-toolkit-8-0-on-ubuntu-16-04/ Will only work with kernel 4.4.115 or 4.4 on Ubuntu 16.04 LTS, use Ukuu kernel selection tool to obtain kernel.

Nvidia download page
http://download.nvidia.com/XFree86/
 * http://download.nvidia.com/XFree86/Linux-x86_64/384.111/NVIDIA-Linux-x86_64-384.111.run
 * https://developer.nvidia.com/cuda-80-ga2-download-archive CUDA 8 for ubuntu 16.04

intel bios
http://ethosdistro.com/kb/#booting-intel-boards

cuda
https://asierarranz.github.io/Razer-Blade-1060GTX-CUDA-cuDNN-Ubuntu/

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.44-1_amd64.deb

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb

sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb

sudo apt-get update # (here you could get an "Invalid Date" warning, you can ignore it)

sudo apt-get install cuda # (Wait, around 2Gb will be downloaded)

gedit .bashrc

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

export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

aptitude
For GTX1070,1050, 1060, 1080ti and Titan X
 * sudo apt install -y aptitude
 * aptitude search cuda   #lists cuda drivers.
 * aptitude search nvidia #lists nvidia drivers.

links

 * Nvidia linux drivers
 * Berkeleydb gobyte needs this to compile.