This question already has an answer here:

I have installed cuda via a package manager. The installation seems to be successful:

$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2016 NVIDIA Corporation Built on Sun_Sep__4_22:14:01_CDT_2016 Cuda compilation tools, release 8.0, V8.0.44

And when I type which nvcc I get /usr/bin/nvcc. However, I think the cuda directory is not actually there:

$ ls -a /usr/local/bin
.   easy_install      f2py  gitsome      tensorboard   theano-nose 
xonsh.bat ..  easy_install-2.7  gh    gitsome.bat  theano-cache  xonsh

Is cuda actually installed, and if it is - where?

After running dpkg --get-selections | grep cuda I get the following output:

libcuda1-375                        install
libcudart8.0:amd64              install
nvidia-cuda-dev                 install
nvidia-cuda-doc                 install
nvidia-cuda-gdb                 install
nvidia-cuda-toolkit             install

marked as duplicate by David Foerster, Eric Carvalho, user364819, Zanna, muru Jun 12 '17 at 6:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


CUDA seems to be successfully installed. It should get installed in /usr/local/.

Try checking with

dpkg --get-selections | grep cuda

This command shows the following result for successfully installed cuda7.5: result of above command after installing cuda 7.5

  • I updated my question with the result of dpkg --get-selections | grep cuda – user1767774 Jun 1 '17 at 11:21
  • did you try this verify cuda install ? – Nidhi Jun 1 '17 at 11:41
  • Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you what's too long) should be uploaded to a pastie service and linked to in the answer. Thanks. – David Foerster Jun 1 '17 at 12:07
  • verifying yields the expected output. – user1767774 Jun 1 '17 at 12:12
  • CUDA is installed in your system then. You can go ahead and use it. Remember adding these variables to your .bashrc file: export PATH=/usr/local/cuda/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH – Nidhi Jun 1 '17 at 13:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.