Vefify the installation cd /usr/local/cuda/samples/1_Utilities/deviceQuery Set up cuda system path echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' > ~/.bashrcĮcho 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' > ~/.bashrc Sudo ln -s /usr/bin/g++ /usr/local/cuda/bin/g++ Set up symlinks for gcc sudo ln -s /usr/bin/gcc /usr/local/cuda/bin/gcc Then you can install the cuBLAS patch file(total 4): chmod +x cuda_9.0.176.x_n
#Ubuntu 16.04 install cuda 6.5 driver#
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81? no (MUST SELECT NO!!!) cuda_9.0.176_384.81_linux-run -overrideĪnswer following questions while installtion begin You are attempting to install on an unsupported configuration. Prepare/Download CUDA installtion packagesĭownload the runfile installation packager from CUDA website legacy download, download base installer (cuda_9.0.176_384.81_linux-run for Ubuntu 16.04) and four patch file(cuda_9.0.176.x_n)/ Sudo update-alternatives -install /usr/bin/g++ g++ /usr/bin/g++-5 50 Sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-5 50 To install CUDA, gcc must not be newer than gcc 6.x, I choose to downgrade to gcc 5.x sudo apt install gcc-5 g++-5 Install dependent library sudo apt install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev Sudo apt install nvidia-384 nvidia-384-dev sudo add-apt-repository ppa:graphics-drivers/ppa Note: For CUDA 9.0, it require at least nvidia-384 driver, so if your current driver version is equal to or newer than 384, you have no need to upgrade or reinstall the driver, can skip theįollowing driver installation steps. You shoud see something like “nvidia-384”, “nvidia-390”, “nvidia-396” …Ĭurrent default gcc version is 7.3 in Ubuntu 18.04.1, we need to downgrade gcc version for later CUDA installation. Verify your current NVIDIA GPU driver version nvidia-smi You shoud see the NVIDIA GPU information, for my case, I use GTX 1080Ti. Verify your NVIDIA GPU CUDA enable lspci | grep -i nvidia
#Ubuntu 16.04 install cuda 6.5 how to#
This tutorial will guide you how to install CUDA and cuDNN for tensorflow-gpu using in Ubuntu 18.04, there are some online tutorials which always made some errors when I follow them to do the setup, it may be caused by new Ubuntu OS version and other version conflict, so I prepared a detailed guide to help on this.įirstly, you should know your development envirnment clearly, here is my pc environment and library that will be used (on ):