
Verify running CUDA GPU jobs by compiling the samples and executing the deviceQuery. $ cd /usr/local/cuda/samples/1_Utilities/deviceQuery $ nvcc -VĬhange directory to CUDA samples. Otherwise, when you are running Tensorflow, you will face with an import error. $ export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH $ export PATH=/usr/local/cuda-8.0/bin:$PATH Insert the lines below inside the bash file. The toolkit default install location is /usr/local/cuda. $ sudo service lightdm start CUDA PathnamesĪppend the relevant Cuda pathnames to the LD_LIBRARY_PATH environment variable. Once it has completed, restart the X server. Now change directory into the location you have downloaded CUDA. Use Ctrl + Alt + F7 to exit from virtual terminal. In Ubuntu, it is Ctrl + Alt + F1, to login, and gain access to the system. Once you stop X server, you’ll see a black screen and you need to get to the virtual terminal.

Install CUDA as mentioned here.Before CUDA can be installed you, there are a few steps you need to do otherwise you will get an error telling you an X server is running and it won’t let you install.



Any deeplearning framework’s GPU version needs you to have CUDA installed prior to it. So, I came across this problem while installing tensorflow GPU version.
