Has anyone successfully installed CUDA 7.5 on Ubuntu 14.04.3 LTS x86_64?

The installation of CUDA is little a bit tricky. I've followed the following steps and it works for me. You can refer to this link also.

Confirmation of the environment:

  1. lspci | grep -i nvidia (Confirm that the information of NVIDIA's board is displayed)

  2. uname -m (make sure that it is a x86_64)

  3. gcc --version (make sure it is installed)

Installation of CUDA –

  1. Download cuda_7.5.18_linux.run file from https://developer.nvidia.com/cuda-downloads

  2. Run the following commands:

    sudo apt-get install build-essential
    echo blacklist nouveau option nouveau modeset=0 |sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf 
    sudo update-initramfs -u
    
  3. Reboot computer

  4. At login screen, press Ctrl+Alt+F1and login to your user.

  5. Go to the directory where you have the CUDA driver, and run

    chmod a+x .
    sudo service lightdm stop
    sudo bash cuda-7.5.18_linux.run --no-opengl-libs
    
  6. During installation:

    • Accept EULA conditions
    • Say YES to installing the NVIDIA driver
    • Say YES to installing CUDA Toolkit + Driver
    • Say YES to installing CUDA Samples
    • Say NO rebuilding any Xserver configurations with Nvidia
  7. Check if /dev/nvidia* files exist. If they don't, do the following

    sudo modprobe nvidia
    
  8. Set Environment path variables

    export PATH=/usr/local/cuda-7.5/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH
    
  9. Verify the driver version

    cat /proc/driver/nvidia/version`
    
  10. Check CUDA driver version

    nvcc –V
    
  11. Switch the lightdm back on again

    sudo service lightdm start
    
  12. Ctrl+Alt+F7 and login to the system through GUI

  13. Create CUDA Samples, Go to NVIDIA_CUDA-7.5_Samples folder through terminal, then run following command:

    make
    cd bin/x86_64/linux/release/
    ./deviceQuery
    ./bandwidthTest
    

    Both tests should ultimately output a 'PASS' in terminal

  14. Reboot the system


There are two ways to install suiting CUDA-driver (for Optimus and else built-in graphics-chipsets on hybrid mainboards) - the first described here is the easiest and the second description is more cumbersome but effective too :

A)

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355 nvidia-prime
sudo reboot

B)

Description of method B is here, but already older (explained by user dschinn1001) - this method B is more humblesome and can be risky, but not harmful. :

How can I Install Nvidia Driver GT 520 and Cuda 5.0 in Ubuntu13.04?

The beta-driver-package for Nvidia to download for Linux is here :

http://www.nvidia.de/object/cuda_1_1_beta.html

Method A is more simple, but not clear, how it interacts with xscreensaver and method B is older, but the driver-package is updated too in recent time, and after method B is done, it should work better with xscreensaver conditioned that xscreensaver is installed. (I tested method B on 13.10 and this was working very good, even with xscreensaver. And I think the rest of this thread is up to the hardware.)

In addition and in reference to bumblebee with Optimus-graphics-chipsets these adjustments for bumblebee are necessary too :

How to set up nVidia Optimus/Bumblebee in 14.04

Tags:

Cuda

Nvidia

14.04