TensorFlow on a GTX 1080

$ sudo apt-get purge nvidia-* $ sudo add-apt-repository ppa:graphics-drivers/ppa $ sudo apt-get update $ sudo apt-get install nvidia-367 With the driver and its dependencies installed Ill reboot the system..$ sudo reboot Once the machine is back up you can see version 367.35 is now installed: $ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 367.35 Mon Jul 11 23:14:21 PDT 2016 GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.1) The following is the output from Nvidias system management interface showing various diagnostics from my GTX 1080..$ sudo nvidia-smi +—————————————————————————–+ | NVIDIA-SMI 367.35 Driver Version: 367.35 | |——————————-+———————-+———————-+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr..ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M..| |===============================+======================+======================| | 0 GeForce GTX 1080 Off | 0000:02:00.0 Off | N/A | | 25% 50C P2 38W / 200W | 55MiB / 8112MiB | 0% Default | +——————————-+———————-+———————-+ +—————————————————————————–+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 3084 G /usr/lib/xorg/Xorg 53MiB | +—————————————————————————–+ Ill set GCC 4.9 to be the default version being used on this system..The CUDA toolkit complains about this version while installing but I found it works nonetheless..$ sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 $ sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 $ sudo update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 $ sudo update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 Next Ill download the 64-bit version of the CUDA 7.5 platform distribution for Ubuntu 14 (even though this is running on Ubuntu 16)..Version 8 is the latest version but isnt supported by TensorFlow yet..If you need a different version please see Nvidias CUDA downloads page..There will be a complaint about using GCC 4.9 so Ive added an –override flag to get around this..$ wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run $ sudo sh cuda_7.5.18_linux.run –override Do you accept the previously read EULA?.(accept/decline/quit): accept You are attempting to install on an unsupported configuration.. More details

Leave a Reply