
- #Ubuntu cuda installation guide linux install#
- #Ubuntu cuda installation guide linux drivers#
- #Ubuntu cuda installation guide linux update#
- #Ubuntu cuda installation guide linux driver#
- #Ubuntu cuda installation guide linux upgrade#
$ sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-6 50ĬOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapperĬonfigured with. $ sudo update-alternatives -install /usr/bin/g++ g++ /usr/bin/g++-6 50
#Ubuntu cuda installation guide linux install#
token=FA7CF967F32AD2277A4B0EA78D1CB8D4 241MiB |Ĭopyright (c) 2005-2017 NVIDIA CorporationĬuda compilation tools, release 9.0, V9.0.176ĬUDA Requirements $ sudo apt-get install gcc-6 g++-6 Warning: Do not install the display driver! (At least it didn't work on my Thinkpad T460p) CUDA 9.0 for tf $ nvidia-smi | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. Next step: Install cuDNN CUDA 9.2 $ nvidia-smi Install CUDA requirements (see section below).Download CUDA for Ubuntu 17.10 (runfile local) - Tensorflow recommends CUDA 9.0 - CUDA 9.2 seems not to work with tf.Sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++ echo 'export PATH=/usr/local/cuda-9.1/bin:$PATH' > ~/.bashrcĮcho 'export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH' > ~/.bash.rcįinally you have to set up simlinks to gcc-6 and g++-6 or you will get a warning on compiling your own code.(Required) sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc Also the nvidia documentation will tell you what to export. The run file will give you a reminder, too. It will ask you a bunch of questions, and it will want them answered immediately.Īnswer yes to the unsupported confguration.Īfter that is installed then make sure you set up your paths. It will install it using the new gcc compilers. Mark the file as executable(I right click on the file in desktop). I ended up installing the 9.1 run file for Ubuntu 17.04. (I would probably skip this one, but go to it if other stuff is giving issues) sudo apt install nvidia-cuda-toolkit You can try using nvidia-cuda-toolkit, but the paths to the libraries wasn't familiar to me.
#Ubuntu cuda installation guide linux driver#
As of today nvidia driver 396 is available.
#Ubuntu cuda installation guide linux drivers#
I use the GUI updater for the most part called Software & Updates, in the Additional Drivers tab. sudo add-apt-repository ppa:graphics-drivers/ppa (I would say this is required before installing, unless you want to risk some login loop of death). There might be added extra stuff that I could have probably not had to do, but I am going to include it anyways.įirst get the ppa repository drivers.
#Ubuntu cuda installation guide linux upgrade#
The second method has the downside that it's not as easy to upgrade or remove. Make sure you don’t agree to install the new driver.
#Ubuntu cuda installation guide linux update#
