Install Driver
- Download Tesla driver (http://www.nvidia.com/Download/index.aspx?lang=en-us )
- Move to runlevel 3
$ telinit 3
-
Stop lightdm service
$ service lightdm stop
-
Change file mode of the driver package
$ chmod +x NVIDIA-Linux-x86_64-352.99.run
5. Install driver without opengl driver
$ ./NVIDIA-Linux-x86_64-352.99.run --no-opengl-files
- Once completed, check whether the module is loaded
$ lsmod | grep nvidia
if not loaded try to manually load
$ modprobe nvidia
-
Query GPU info
$ nvidia-smi
-
Start lightdm back
$ service lightdm start
-
reboot
Install CUDA
-
Download CUDA 7.5 local repo from (https://developer.nvidia.com/cuda-downloads ). Choose deb(local) installer type.
-
Install CUDA local repo
$ sudo dpkg -i cuda-repo-ubuntu*.deb
$ sudo apt-get update -
Install cuda toolkit only
$ sudo apt-get install cuda-toolkit-7-5
-
Set PATH and LD_LIBRARY_PATH in /etc/profile.d and you may also need to configure ldconfig in /etc/ld.so.conf.d
-
Try to compile deviceQuery